Skip to content

Commit

Permalink
fix: long arguments [fixes NET-442] (#1579)
Browse files Browse the repository at this point in the history
* fix: long arguments [fixes NET-442]

* Review fixes
  • Loading branch information
gurinderu committed Apr 19, 2023
1 parent 3cb3807 commit e4fd400
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions crates/server-config/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use std::path::PathBuf;
pub struct RootKeyPairArgs {
#[arg(
short('k'),
long,
long("keypair-value"),
id = "ROOT_KEY_PAIR_VALUE",
help = "keypair in base64 (conflicts with --keypair-path)",
value_name = "BYTES",
Expand All @@ -39,7 +39,7 @@ pub struct RootKeyPairArgs {
value: Option<String>,
#[arg(
short('p'),
long,
long("keypair-path"),
id = "ROOT_KEY_PAIR_PATH",
help = "keypair path (conflicts with --keypair-value)",
help_heading = "Node keypair",
Expand All @@ -50,7 +50,7 @@ pub struct RootKeyPairArgs {
path: Option<PathBuf>,
#[arg(
short('f'),
long,
long("keypair-format"),
value_parser(["ed25519", "secp256k1", "rsa"]),
id = "ROOT_KEY_FORMAT",
help_heading = "Node keypair",
Expand All @@ -59,13 +59,13 @@ pub struct RootKeyPairArgs {
format: Option<String>,

#[arg(
short('g'),
long,
value_parser = clap::value_parser!(bool),
id = "ROOT_KEY_PAIR_GENERATE",
help_heading = "Node keypair",
display_order = 13,
action = clap::ArgAction::SetTrue
short('g'),
long("gen-keypair"),
value_parser = clap::value_parser!(bool),
id = "ROOT_KEY_PAIR_GENERATE",
help_heading = "Node keypair",
display_order = 13,
action = clap::ArgAction::SetTrue
)]
generate_on_absence: Option<bool>,
#[arg(
Expand Down Expand Up @@ -138,7 +138,7 @@ pub(crate) struct DerivedArgs {
metrics_port: Option<u16>,
#[arg(
short('x'),
long,
long("external-ip"),
id = "EXTERNAL_ADDR",
help = "node external IP address to advertise to other peers",
value_name = "IP",
Expand Down

0 comments on commit e4fd400

Please sign in to comment.