Skip to content

Commit

Permalink
indexer-example: change short option for --home-dir (#12471)
Browse files Browse the repository at this point in the history
Needed to avoid this fatal error:

```
thread 'main' panicked at /Users/saketh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.2.4/src/builder/debug_asserts.rs:115:17:
Command indexer-example: Short option names must be unique for each argument, but '-h' is in use by both 'home_dir' and 'help' (call `cmd.disable_help_flag(true)` to remove the auto-generated `--help`)
```
  • Loading branch information
saketh-are authored Nov 17, 2024
1 parent 655f910 commit 8e0b26f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/indexer/example/src/configs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use near_indexer::near_primitives::types::Gas;
#[clap(subcommand_required = true, arg_required_else_help = true)]
pub(crate) struct Opts {
/// Sets a custom config dir. Defaults to ~/.near/
#[clap(short, long)]
#[clap(short = 'd', long)]
pub home_dir: Option<std::path::PathBuf>,
#[clap(subcommand)]
pub subcmd: SubCommand,
Expand Down

0 comments on commit 8e0b26f

Please sign in to comment.