Skip to content

Commit

Permalink
feat: add aliases for private_key_pem and neuron_id options (#1158)
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic authored Dec 18, 2024
1 parent 51df550 commit 4e20800
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rs/cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ pub struct AuthOpts {
required = false,
global = true,
conflicts_with_all = ["hsm_pin", "hsm_slot", "hsm_key_id"],
env = "PRIVATE_KEY_PEM")]
env = "PRIVATE_KEY_PEM",
visible_aliases = &["pem", "key", "private-key"]
)]
pub(crate) private_key_pem: Option<String>,
#[clap(flatten)]
pub(crate) hsm_opts: HsmOpts,
Expand Down Expand Up @@ -158,7 +160,7 @@ pub struct Args {
pub(crate) discourse_opts: DiscourseOpts,

/// Neuron ID
#[clap(long, global = true, env = "NEURON_ID")]
#[clap(long, global = true, env = "NEURON_ID", visible_aliases = &["neuron", "proposer"])]
pub neuron_id: Option<u64>,

/// Path to explicitly state ic-admin path to use
Expand Down

0 comments on commit 4e20800

Please sign in to comment.