From 83c69f5b0cdec4947bf7bf7585424e3c96352526 Mon Sep 17 00:00:00 2001 From: Aoi Kurokawa <62386689+aoikurokawa@users.noreply.github.com> Date: Tue, 8 Oct 2024 00:16:09 +0900 Subject: [PATCH] Fix: `init-config` command of `validator-history-cli` (#89) #### Motivation Currently, has an error when we want to initialize config by `validator-history-cli` . ``` Command init-config: Short option names must be unique for each argument, but '-t' is in use by both 'tip_distribution_program_id' and 'tip_distribution_authority ``` #### Solution - Remove short option. --- utils/validator-history-cli/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/validator-history-cli/src/main.rs b/utils/validator-history-cli/src/main.rs index 3d609fd9..4bf62920 100644 --- a/utils/validator-history-cli/src/main.rs +++ b/utils/validator-history-cli/src/main.rs @@ -50,13 +50,13 @@ struct InitConfig { keypair_path: PathBuf, /// Tip distribution program ID (Pubkey as base58 string) - #[arg(short, long, env)] + #[arg(long, env)] tip_distribution_program_id: Pubkey, /// New tip distribution authority (Pubkey as base58 string) /// /// If not provided, the initial keypair will be the authority - #[arg(short, long, env, required(false))] + #[arg(long, env, required(false))] tip_distribution_authority: Option, // New stake authority (Pubkey as base58 string)