Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
neard: improve localnet command arguments (near#6808)
Expectation for single-letter options is that they are passed as short switches with a single dash. However, currently LocalnetCmd breaks that expectation by using ‘n’ and ‘v’ as long option names. This means that ‘neard localnet -v 3’ won’t work and instead an unorthodox ‘neard localnet --v 3’ needs to be used. To bring the command parsing closer with established practices, add proper long names for validators and non_validators options, introduce short names for them and, to keep backwards compatibility, retain the old long names as aliases (the aliases won’t show up in help message). While at it, add ‘-s’ short name to ‘--shards’ and add documentation for currently undocumented ‘--archival-node’ and ‘--fixed-shards’.
- Loading branch information