From 1a35afc3dc41b76973b0573939cb957bac0024a7 Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Sat, 3 Oct 2020 00:35:23 +0300 Subject: [PATCH] Support non-positional params (#393) --- bridges/relays/substrate/src/cli.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bridges/relays/substrate/src/cli.rs b/bridges/relays/substrate/src/cli.rs index 939863b5ca..ca97aa0024 100644 --- a/bridges/relays/substrate/src/cli.rs +++ b/bridges/relays/substrate/src/cli.rs @@ -44,8 +44,10 @@ macro_rules! declare_chain_options { #[derive(StructOpt)] pub struct [<$chain ConnectionParams>] { #[doc = "Connect to " $chain " node at given host."] + #[structopt(long)] pub [<$chain_prefix _host>]: String, #[doc = "Connect to " $chain " node at given port."] + #[structopt(long)] pub [<$chain_prefix _port>]: u16, } @@ -53,8 +55,10 @@ macro_rules! declare_chain_options { #[derive(StructOpt)] pub struct [<$chain SigningParams>] { #[doc = "The SURI of secret key to use when transactions are submitted to the " $chain " node."] + #[structopt(long)] pub [<$chain_prefix _signer>]: String, #[doc = "The password for the SURI of secret key to use when transactions are submitted to the " $chain " node."] + #[structopt(long)] pub [<$chain_prefix _signer_password>]: Option, } }