clap/tests/builder
Ed Page 31b22d1a51 perf(parser): Take up less memory with ArgAction::Count
Someone should not reasonably expect a coun flag to go up to billions,
millions, or even thousands.  255 should be sufficient for anyone,
right?

The original type was selected to be consistent with
`ArgMatches::occurrences_of` but that is also used for tracking how
many values appear which can be large with `xargs`.

I'm still conflicted on what the "right type" is an wish we could
support any numeric type.  When I did a search on github though, every
case was for debug/quiet flags and only supported 2-3 occurrences,
making a `u8` overkill.

This came out of a discussion on #3792
2022-06-09 11:09:38 -05:00
..
legacy perf(parser): Take up less memory with ArgAction::Count 2022-06-09 11:09:38 -05:00
action.rs perf(parser): Take up less memory with ArgAction::Count 2022-06-09 11:09:38 -05:00
app_from_crate.rs docs: Update to new command! macro 2022-02-15 08:54:59 -06:00
app_settings.rs fix(assert): Check for version if user specifies ArgAction::Version 2022-06-08 11:59:49 -05:00
arg_aliases.rs refactor(test): Make it easier to fork tests 2022-06-07 16:21:12 -05:00
arg_aliases_short.rs refactor(test): Make it easier to fork tests 2022-06-07 16:21:12 -05:00
arg_matcher_assertions.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
arg_settings.rs fix: Deprecate various APIs 2022-02-10 19:37:47 -06:00
borrowed.rs docs: Update App references to Command 2022-02-14 15:33:49 -06:00
cargo.rs docs: Update App references to Command 2022-02-14 15:33:49 -06:00
command.rs fix: Update app_from_crate for App rename 2022-02-15 08:39:07 -06:00
conflicts.rs refactor(test): Make it easier to fork tests 2022-06-07 16:21:12 -05:00
default_missing_vals.rs fix(parser): Deprecate occurrences_of 2022-06-07 13:30:32 -05:00
default_vals.rs refactor(test): Make it easier to fork tests 2022-06-07 16:21:12 -05:00
delimiters.rs fix(parser): Deprecate occurrences_of 2022-06-07 13:30:32 -05:00
derive_order.rs refactor(test): Make it easier to fork tests 2022-06-07 16:21:12 -05:00
display_order.rs refactor(test): Make it easier to fork tests 2022-06-07 16:21:12 -05:00
double_require.rs refactor(help): Remove redundant required check 2022-05-05 17:02:49 -05:00
empty_values.rs refactor(test): Make it easier to fork tests 2022-06-07 16:21:12 -05:00
env.rs fix(parser): Deprecate occurrences_of 2022-06-07 13:30:32 -05:00
error.rs refactor(test): Make it easier to fork tests 2022-06-07 16:21:12 -05:00
flag_subcommands.rs refactor(test): Make it easier to fork tests 2022-06-07 16:21:12 -05:00
flags.rs refactor(test): Make it easier to fork tests 2022-06-07 16:21:12 -05:00
global_args.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
grouped_values.rs fix(parser): Deprecate multiple_occurrences 2022-06-08 09:54:23 -05:00
groups.rs refactor(test): Make it easier to fork tests 2022-06-07 16:21:12 -05:00
help.rs fix(assert): Reference help_expected 2022-06-08 12:06:15 -05:00
help_env.rs refactor(test): Make it easier to fork tests 2022-06-07 16:21:12 -05:00
hidden_args.rs refactor(test): Make it easier to fork tests 2022-06-07 16:21:12 -05:00
ignore_errors.rs Revert "fix(parser): Don't treat missing values as missing args" 2022-06-02 16:56:14 -05:00
indices.rs fix(parser): Deprecate multiple_occurrences 2022-06-08 09:54:23 -05:00
main.rs test: Ensure we don't break compatibility 2022-06-07 16:21:37 -05:00
multiple_occurrences.rs perf(parser): Take up less memory with ArgAction::Count 2022-06-09 11:09:38 -05:00
multiple_values.rs fix(parser): Deprecate multiple_occurrences 2022-06-08 09:54:23 -05:00
opts.rs refactor(test): Make it easier to fork tests 2022-06-07 16:21:12 -05:00
positionals.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
posix_compatible.rs fix(parser): Deprecate multiple_occurrences 2022-06-08 09:54:23 -05:00
possible_values.rs fix(parser): Deprecate multiple_occurrences 2022-06-08 09:54:23 -05:00
propagate_globals.rs perf(parser): Take up less memory with ArgAction::Count 2022-06-09 11:09:38 -05:00
regex.rs fix(validator): Deprecate validator_regex 2022-05-25 14:32:00 -05:00
require.rs refactor(test): Make it easier to fork tests 2022-06-07 16:21:12 -05:00
subcommands.rs refactor(test): Make it easier to fork tests 2022-06-07 16:21:12 -05:00
template_help.rs refactor(test): Make it easier to fork tests 2022-06-07 16:21:12 -05:00
tests.rs perf(parser): Take up less memory with ArgAction::Count 2022-06-09 11:09:38 -05:00
unicode.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
unique_args.rs docs: Update App references to Command 2022-02-14 15:33:49 -06:00
utf8.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
utf16.rs docs: Update App references to Command 2022-02-14 15:33:49 -06:00
utils.rs fix(parser): Deprecate multiple_occurrences 2022-06-08 09:54:23 -05:00
validators.rs fix: Deprecate validator / validator_os 2022-05-25 12:57:11 -05:00
version.rs fix(assert): Check for version if user specifies ArgAction::Version 2022-06-08 11:59:49 -05:00