mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-05 21:27:24 +00:00
use clap3 instead of structopt (#10632)
* use clap3 instead of structopt Signed-off-by: koushiro <koushiro.cqx@gmail.com> * format Signed-off-by: koushiro <koushiro.cqx@gmail.com> * update ss58-registry and revert some nits Signed-off-by: koushiro <koushiro.cqx@gmail.com> * Fix clippy and doc Signed-off-by: koushiro <koushiro.cqx@gmail.com> * update clap to 3.0.7 Signed-off-by: koushiro <koushiro.cqx@gmail.com> * Apply review suggestions Signed-off-by: koushiro <koushiro.cqx@gmail.com> * remove useless option long name Signed-off-by: koushiro <koushiro.cqx@gmail.com> * cargo fmt Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
@@ -35,14 +35,10 @@ const SUB: &'static str = "chain_subscribeFinalizedHeads";
|
||||
const UN_SUB: &'static str = "chain_unsubscribeFinalizedHeads";
|
||||
|
||||
/// Configurations of the [`Command::FollowChain`].
|
||||
#[derive(Debug, Clone, structopt::StructOpt)]
|
||||
#[derive(Debug, Clone, clap::Parser)]
|
||||
pub struct FollowChainCmd {
|
||||
/// The url to connect to.
|
||||
#[structopt(
|
||||
short,
|
||||
long,
|
||||
parse(try_from_str = parse::url),
|
||||
)]
|
||||
#[clap(short, long, parse(try_from_str = parse::url))]
|
||||
uri: String,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user