mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 02:51:01 +00:00
Support non-positional params (#393)
This commit is contained in:
committed by
Bastian Köcher
parent
07a514e9f7
commit
1a35afc3dc
@@ -44,8 +44,10 @@ macro_rules! declare_chain_options {
|
|||||||
#[derive(StructOpt)]
|
#[derive(StructOpt)]
|
||||||
pub struct [<$chain ConnectionParams>] {
|
pub struct [<$chain ConnectionParams>] {
|
||||||
#[doc = "Connect to " $chain " node at given host."]
|
#[doc = "Connect to " $chain " node at given host."]
|
||||||
|
#[structopt(long)]
|
||||||
pub [<$chain_prefix _host>]: String,
|
pub [<$chain_prefix _host>]: String,
|
||||||
#[doc = "Connect to " $chain " node at given port."]
|
#[doc = "Connect to " $chain " node at given port."]
|
||||||
|
#[structopt(long)]
|
||||||
pub [<$chain_prefix _port>]: u16,
|
pub [<$chain_prefix _port>]: u16,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,8 +55,10 @@ macro_rules! declare_chain_options {
|
|||||||
#[derive(StructOpt)]
|
#[derive(StructOpt)]
|
||||||
pub struct [<$chain SigningParams>] {
|
pub struct [<$chain SigningParams>] {
|
||||||
#[doc = "The SURI of secret key to use when transactions are submitted to the " $chain " node."]
|
#[doc = "The SURI of secret key to use when transactions are submitted to the " $chain " node."]
|
||||||
|
#[structopt(long)]
|
||||||
pub [<$chain_prefix _signer>]: String,
|
pub [<$chain_prefix _signer>]: String,
|
||||||
#[doc = "The password for the SURI of secret key to use when transactions are submitted to the " $chain " node."]
|
#[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<String>,
|
pub [<$chain_prefix _signer_password>]: Option<String>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user