Add --number argument

This commit is contained in:
Michael Vines
2021-04-19 13:35:59 -07:00
parent 1824b5a2ce
commit f14cf3ed1a
3 changed files with 37 additions and 15 deletions

View File

@@ -133,6 +133,7 @@ pub enum CliCommand {
use_lamports_unit: bool,
sort_order: CliValidatorsSortOrder,
reverse_sort: bool,
number_validators: bool,
},
Supply {
print_accounts: bool,
@@ -1385,12 +1386,14 @@ pub fn process_command(config: &CliConfig) -> ProcessResult {
use_lamports_unit,
sort_order,
reverse_sort,
number_validators,
} => process_show_validators(
&rpc_client,
config,
*use_lamports_unit,
*sort_order,
*reverse_sort,
*number_validators,
),
CliCommand::Supply { print_accounts } => {
process_supply(&rpc_client, config, *print_accounts)