Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[token-cli] Upgrade to clap-v3 (#6376)
* upgrade clap version to `3.2.23` * remove lifetime parameters from `ArgMatches` * remove extra lifetime parameters from `Arg` * remove extra lifetime parameters from `App` * use `usize` type parameters for `min_values` and `max_values` * use `char` type parameters for `short` arguments * update syntax for custom validator functions * update pattern matching syntax for `subcommand` * update for new `possible_values` syntax * allow deprecated input validation for now * resolve lifetime specifier issue with higher order validator functions * directly specify positional parameter indices * remove non-functioning `owner` alias in some subcommands * remove long names for positional arguments * remove potential panice from `value_of` and `is_present` * add custom `signer_from_path` and `signer_from_path_with_config` * cargo fmt * remove duplicate addition of args in invalid config test * use `try_get_one` to parse `compute_unit_price` and `compute_unit_limit` * hard-code `signer_arg` and `OfflineArgs` * replace `value_of` function * revert direct parser for `is_amount` validation
- Loading branch information