mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 21:41:12 +00:00
Fix cli for structopt 0.3.7 and pin to that version (#4509)
* Fix cli for structopt 0.3.7 and pin to that version This is just some hotfix to make everything compile. In the future it will require another pr to not depend on internals of StructOpt, but that will probably also require some additions to StructOpt itself. To not break the code again with another StructOpt, this also pins the StructOpt version. * Fix benches * Fix for fix
This commit is contained in:
@@ -48,7 +48,7 @@ use std::{
|
||||
|
||||
use names::{Generator, Name};
|
||||
use regex::Regex;
|
||||
use structopt::{StructOpt, clap::AppSettings};
|
||||
use structopt::{StructOpt, StructOptInternal, clap::AppSettings};
|
||||
#[doc(hidden)]
|
||||
pub use structopt::clap::App;
|
||||
use params::{
|
||||
@@ -57,7 +57,7 @@ use params::{
|
||||
NodeKeyParams, NodeKeyType, Cors, CheckBlockCmd,
|
||||
};
|
||||
pub use params::{NoCustom, CoreParams, SharedParams, ImportParams, ExecutionStrategy};
|
||||
pub use traits::{GetSharedParams, AugmentClap};
|
||||
pub use traits::GetSharedParams;
|
||||
use app_dirs::{AppInfo, AppDataType};
|
||||
use log::info;
|
||||
use lazy_static::lazy_static;
|
||||
@@ -196,7 +196,7 @@ pub fn parse_and_prepare<'a, CC, RP, I>(
|
||||
) -> ParseAndPrepare<'a, CC, RP>
|
||||
where
|
||||
CC: StructOpt + Clone + GetSharedParams,
|
||||
RP: StructOpt + Clone + AugmentClap,
|
||||
RP: StructOpt + Clone + StructOptInternal,
|
||||
I: IntoIterator,
|
||||
<I as IntoIterator>::Item: Into<std::ffi::OsString> + Clone,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user