clap/tests/builder
Ed Page e4b443d8bb fix(parser): Provide default value for Actions
Actions were inspired by Python and Python does not implicitly default
any field when an action is given.  From a Builder API perspective, this
seemed fine because we tend to focus the Builder API on giving the user
all information so they can make their own decisions.  When working on
the Derive API, this became a problem because users were going to have
to migrate from an implied default to an explicit default when a common
default is good enough most of the time.  This shouldn't interfere with
Builder users getting more details when needed.

This also highlighted two problems
- We set the index for defaults
- We don't debug_assert when applying conditional requirements with a
  default present
2022-06-03 10:02:35 -05:00
..
action.rs fix(parser): Provide default value for Actions 2022-06-03 10:02:35 -05:00
app_from_crate.rs docs: Update to new command! macro 2022-02-15 08:54:59 -06:00
app_settings.rs fix: Remove deprecation warning 2022-05-26 15:52:35 -05:00
arg_aliases.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
arg_aliases_short.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -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 fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
default_missing_vals.rs refactor(parser): Be more explicit in default_missing_values 2022-05-27 07:04:24 -05:00
default_vals.rs fix(parser): Always use delimiter on defaults/env 2022-05-26 20:50:44 -05:00
delimiters.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
derive_order.rs refactor(test): Use snapbox's diffs 2022-04-29 15:32:25 -05:00
display_order.rs refactor(test): Use snapbox's diffs 2022-04-29 15:32:25 -05:00
double_require.rs refactor(help): Remove redundant required check 2022-05-05 17:02:49 -05:00
empty_values.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
env.rs Revert "fix(parser): Don't treat missing values as missing args" 2022-06-02 16:56:14 -05:00
error.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
flag_subcommands.rs refactor(test): Use snapbox's diffs 2022-04-29 15:32:25 -05:00
flags.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
global_args.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
grouped_values.rs refactor(parser): Be explicit about not not iterating over every value 2022-05-31 14:44:36 -05:00
groups.rs Revert "fix(parser): Don't treat missing values as missing args" 2022-06-02 16:56:14 -05:00
help.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
help_env.rs refactor(test): Use snapbox's diffs 2022-04-29 15:32:25 -05:00
hidden_args.rs refactor(test): Use snapbox's diffs 2022-04-29 15:32:25 -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 docs: Update App references to Command 2022-02-14 15:33:49 -06:00
main.rs fix(parser): Apply conditional defaults 2022-05-31 21:21:50 -05:00
multiple_occurrences.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
multiple_values.rs fix(parser): Restore positional occurrence behavior 2022-05-31 14:44:36 -05:00
opts.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -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 value_of and friends 2022-05-25 12:57:11 -05:00
possible_values.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
propagate_globals.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
regex.rs fix(validator): Deprecate validator_regex 2022-05-25 14:32:00 -05:00
require.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
subcommands.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -05:00
template_help.rs refactor(test): Use snapbox's diffs 2022-04-29 15:32:25 -05:00
tests.rs fix(parser): Deprecate value_of and friends 2022-05-25 12:57:11 -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: Deprecate possible_values 2022-05-25 12:57:11 -05:00
validators.rs fix: Deprecate validator / validator_os 2022-05-25 12:57:11 -05:00
version.rs refactor(test): Use snapbox's diffs 2022-04-29 15:32:25 -05:00