clap/tests/derive_ui
Ed Page 7515bfeb51 fix: Allow people to opt-in to deprecations
This adds a new `Cargo.toml` feature named `deprecated` that opts
controls whether deprecation warnings show up.  This is starting off as
non-default though that may change (see below).

Benefits
- Allows a staged rollout so a smaller subset of users see new
  deprecations and can report their experience with them before everyone
  sees them.  For example, this reduces the number of people who have to
  deal with #3822.
- This allows people to defer responding to each new batch of
  deprecations and instead do it at once.  This means we should
  reconsider #3616.

The one risk is people who don't follow blog posts and guides having a
harder time upgrading to the next breaking release without the warnings
on by default.  For these users, we reserve the right to make the
`deprecated` feature `default`.  This is most likely to happen in a
minor release that is released in conjunction with the next major
release (e.g. when releasing 4.0.0, we release a 3.3.0 that enables
deprecations by default).  By using a feature, users can still disable
this if they want.

Thanks @joshtriplett for the idea
2022-06-14 10:50:05 -05:00
..
next fix(derive): Switch default actions/parsers for unstable-v4 2022-06-13 18:59:58 -05:00
stable fix: Allow people to opt-in to deprecations 2022-06-14 10:50:05 -05:00
clap_empty_attr.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
clap_empty_attr.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
default_value_t_invalid.rs test(derive): Update for deprecations 2022-05-25 13:13:22 -05:00
default_value_t_invalid.stderr test(derive): Update for deprecations 2022-05-25 13:13:22 -05:00
default_value_wo_value_removed.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
default_value_wo_value_removed.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
enum_flatten.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
enum_flatten.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
enum_variant_not_args.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
enum_variant_not_args.stderr test: Re-enable ui tests 2022-05-20 14:10:32 -05:00
external_subcommand_misuse.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
external_subcommand_misuse.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
external_subcommand_wrong_type.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
external_subcommand_wrong_type.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
flatten_and_methods.rs test(derive): Update for deprecations 2022-05-25 13:13:22 -05:00
flatten_and_methods.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
flatten_and_parse.rs test(derive): Update for deprecations 2022-05-25 13:13:22 -05:00
flatten_and_parse.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
flatten_enum_in_struct.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
flatten_enum_in_struct.stderr test: Re-enable ui tests 2022-05-20 14:10:32 -05:00
flatten_struct_in_enum.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
flatten_struct_in_enum.stderr test: Re-enable ui tests 2022-05-20 14:10:32 -05:00
multiple_external_subcommand.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
multiple_external_subcommand.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
opt_opt_nonpositional.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
opt_opt_nonpositional.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
opt_vec_nonpositional.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
opt_vec_nonpositional.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
option_default_value.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
option_default_value.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
parse_empty_try_from_os.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
parse_empty_try_from_os.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
parse_function_is_not_path.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
parse_function_is_not_path.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
parse_literal_spec.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
parse_literal_spec.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
parse_not_zero_args.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
parse_not_zero_args.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
parse_with_value_parser.rs feat(derive): Allow users to opt-in to ValueParser 2022-05-20 15:38:44 -05:00
parse_with_value_parser.stderr fix(derive): Fix typo in error messages 2022-06-02 16:46:50 -05:00
raw.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
raw.stderr docs: Update App references to Command 2022-02-14 15:33:49 -06:00
rename_all_wrong_casing.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
rename_all_wrong_casing.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
skip_flatten.rs test(derive): Update for deprecations 2022-05-25 13:13:22 -05:00
skip_flatten.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
skip_subcommand.rs test(derive): Update for deprecations 2022-05-25 13:13:22 -05:00
skip_subcommand.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
skip_with_other_options.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
skip_with_other_options.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
skip_without_default.rs test(derive): Update for deprecations 2022-05-25 13:13:22 -05:00
skip_without_default.stderr test: Re-enable ui tests 2022-05-20 14:10:32 -05:00
struct_parse.rs test(derive): Update for deprecations 2022-05-25 13:13:22 -05:00
struct_parse.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
struct_subcommand.rs test(derive): Update for deprecations 2022-05-25 13:13:22 -05:00
struct_subcommand.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
subcommand_and_flatten.rs test(derive): Update for deprecations 2022-05-25 13:13:22 -05:00
subcommand_and_flatten.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
subcommand_and_methods.rs test(derive): Update for deprecations 2022-05-25 13:13:22 -05:00
subcommand_and_methods.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
subcommand_and_parse.rs test(derive): Update for deprecations 2022-05-25 13:13:22 -05:00
subcommand_and_parse.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
subcommand_on_struct.rs test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
subcommand_on_struct.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
subcommand_opt_opt.rs test(derive): Update for deprecations 2022-05-25 13:13:22 -05:00
subcommand_opt_opt.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
subcommand_opt_vec.rs test(derive): Update for deprecations 2022-05-25 13:13:22 -05:00
subcommand_opt_vec.stderr test: Consolidate clap tests 2021-11-30 10:07:08 -06:00
unsupported_parser.rs test: Add UI test for unsupported parsers 2022-02-15 12:00:25 +01:00
unsupported_parser.stderr test: Add UI test for unsupported parsers 2022-02-15 12:00:25 +01:00
value_enum_non_unit.rs fix(derive): Clarify ArgEnum as ValueEnum 2022-06-08 11:14:09 -05:00
value_enum_non_unit.stderr fix(derive): Clarify ArgEnum as ValueEnum 2022-06-08 11:14:09 -05:00
value_enum_on_struct.rs fix(derive): Clarify ArgEnum as ValueEnum 2022-06-08 11:14:09 -05:00
value_enum_on_struct.stderr fix(derive): Clarify ArgEnum as ValueEnum 2022-06-08 11:14:09 -05:00