Skip to content

Commit

Permalink
Fix: init-config command of validator-history-cli (#89)
Browse files Browse the repository at this point in the history
#### 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.
  • Loading branch information
aoikurokawa authored Oct 7, 2024
1 parent 48dbf12 commit 83c69f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/validator-history-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Pubkey>,

// New stake authority (Pubkey as base58 string)
Expand Down

0 comments on commit 83c69f5

Please sign in to comment.