From 4e20800194b51c9414d50857c6272a586d84b2f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C5=A1a=20Tomi=C4=87?= Date: Wed, 18 Dec 2024 13:42:53 +0100 Subject: [PATCH] feat: add aliases for private_key_pem and neuron_id options (#1158) --- rs/cli/src/commands/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rs/cli/src/commands/mod.rs b/rs/cli/src/commands/mod.rs index a858b9891..3873f9a43 100644 --- a/rs/cli/src/commands/mod.rs +++ b/rs/cli/src/commands/mod.rs @@ -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, #[clap(flatten)] pub(crate) hsm_opts: HsmOpts, @@ -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, /// Path to explicitly state ic-admin path to use