chore(deps): update rust crate clap to v3.2.25 #91
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.0.14->3.2.25Release Notes
clap-rs/clap (clap)
v3.2.25Compare Source
[3.2.25] - 2023-04-27
Fixes
v3.2.24Compare Source
[3.2.24] - 2023-04-25
Fixes
v3.2.23Compare Source
[3.2.23] - 2022-10-24
Fixes
textwrap0.16v3.2.22Compare Source
[3.2.22] - 2022-09-16
Fixes
terminal_sizeto the 0.2 releasev3.2.21Compare Source
[3.2.21] - 2022-09-12
Features
TypedValueParser::mapto allow reusing existing value parsers for other purposesv3.2.20Compare Source
[3.2.20] - 2022-09-02
Features
ArgMatches::get_counthelp forArgAction::CountArgMatches::get_flaghelp forArgAction::SetTrue/ArgAction::SetFalsev3.2.19Compare Source
[3.2.19] - 2022-08-30
Fixes
args_conflicts_with_subcommandv3.2.18Compare Source
Fixes
Command::print_helpnow respectsCommand::colored_helpv3.2.17Compare Source
Fixes
#[clap(id = ...)]attribute to match Arg's latest APIv3.2.16Compare Source
Fixes
v3.2.15Compare Source
Features
default_values_tanddefault_values_os_tattributesv3.2.14Compare Source
Fixes
multiple_valuespositional followed by another positional now works with multiple flagsv3.2.13Compare Source
Documentation
v3.2.12Compare Source
Fixes
v3.2.11Compare Source
Features
Arg::get_all_short_aliaesandArg::get_all_aliasesv3.2.10Compare Source
Fixes
Command::mut_subcommandv3.2.8Compare Source
Features
Command::mut_subcommandto mirrorCommand::mut_argv3.2.7Compare Source
Fixes
v3.2.6Compare Source
Fixes
--=v3.2.5Compare Source
Fixes
#[clap(default_value_os_t ...)]introduced in v3.2.3v3.2.4Compare Source
Fixes
#[clap(parse)]attribute (#3832)v3.2.3Compare Source
Fixes
#[clap(default_value_os_t ...)]introduced in v3.2.3v3.2.2Compare Source
Fixes
gated behind
unstable-v4#[clap(value_parser, action)]instead of#[clap(parse)](#3827)v3.2.1Compare Source
Fixes
Command::print_helpnow respectsCommand::colored_helpv3.2.0Compare Source
Compatibility
MSRV is now 1.56.0 (#3732)
Behavior
requiredand its variants (#3793)ArgMatches::value_ofand friends, debug asserts were turned into panicsMoving (old location deprecated)
clap::{PossibleValue, ValueHint}toclap::builder::{PossibleValue, ValueHint}clap::{Indices, OsValues, ValueSource, Values}toclap::parser::{Indices, OsValues, ValueSource, Values}clap::ArgEnumtoclap::ValueEnum(#3799)Replaced
Arg::allow_invalid_utf8withArg::value_parser(value_parser!(PathBuf))(#3753)Arg::validator/Arg::validator_oswithArg::value_parser(#3753)Arg::validator_regexwith users providing their ownbuilder::TypedValueParser(#3756)Arg::forbid_empty_valueswithbuilder::NonEmptyStringValueParser/builder::PathBufValueParser(#3753)Arg::possible_valueswithArg::value_parser([...]),builder::PossibleValuesParser, orbuilder::EnumValueParser(#3753)Arg::max_occurrenceswitharg.action(ArgAction::Count).value_parser(value_parser!(u8).range(..N))for flags (#3797)Arg::multiple_occurrenceswithArgAction::AppendorArgAction::Countthough positionals will needArg::multiple_values(#3772, #3797)Command::args_override_selfwithArgAction::Set(#2627, #3797)AppSettings::NoAutoVersionwithArgActionorCommand::disable_version_flag(#3800)AppSettings::NoHelpVersionwithArgActionorCommand::disable_help_flag/Command::disable_help_subcommand(#3800)ArgMatches::{value_of, value_of_os, value_of_os_lossy, value_of_t}withArgMatches::{get_one,remove_one}(#3753)ArgMatches::{values_of, values_of_os, values_of_os_lossy, values_of_t}withArgMatches::{get_many,remove_many}(#3753)ArgMatches::is_valid_argwithArgMatches::{try_get_one,try_get_many}(#3753)ArgMatches::occurrences_ofwithArgMatches::value_sourceorArgAction::Count(#3797)ArgMatches::is_presentwithArgMatches::contains_idorArgAction::SetTrue(#3797)ArgAction::StoreValuewithArgAction::SetorArgAction::Append(#3797)ArgAction::IncOccurrenceswithArgAction::SetTrueorArgAction::Count(#3797)#[clap(parse(...))]replaced with: (#3589, #3794)parseattribute), deprecation warnings can besilenced by opting into the new behavior by adding either
#[clap(action)]or
#[clap(value_parser)](ie requesting the default behavior for theseattributes). Alternatively, the
unstable-v4feature changes the defaultaway from
parsetoaction/value_parser.#[clap(parse(from_flag))]replaced with#[clap(action = ArgAction::SetTrue)](#3794)#[clap(parse(from_occurrences))]replaced with#[clap(action = ArgAction::Count)]though the field's type must beu8(#3794)#[clap(parse(from_os_str)]forPathBuf, replace it with#[clap(value_parser)](as mentioned earlier this will callvalue_parser!(PathBuf)which will auto-select the rightValueParserautomatically).
#[clap(parse(try_from_str = ...)], replace it with#[clap(value_parser = ...)]TypedValueParserwill be needed and specify it with#[clap(value_parser = ...)]Features
Arg::value_parser/ArgMatches::{get_one,get_many}(#2683, #3732)TypedValueParsers available with an API open for expansionvalue_parser!(T)macro for selecting a parser for a given type (#3732) and open to expansion via theValueParserFactorytrait (#3755)[&str]is implicitly a value parser for possible valuesArgMatchesgetters do not assume required arguments (#2505)ArgMatches::remove_*variants to transfer ownershipArgMatches::try_*variants to avoid panics for developer errors (#3621)get_rawto access the underlyingOsStrsPathBufvalue parsers implyValueHint::AnyPathfor completions (#3732)Arg::action(#3774)ArgAction::StoreValue: existingtakes_value(true)behaviorArgAction::IncOccurrences: existingtakes_value(false)behaviorArgAction::Help: existing--helpbehaviorArgAction::Version: existing--versionbehaviorArgAction::Set: Overwrite existing values (likeArg::multiple_occurrencesmixed withCommand::args_override_self) (#3777)ArgAction::Append: likeArg::multiple_occurrences(#3777)ArgAction::SetTrue: Treat--flagas--flag=true(#3775)Arg::default_value("false")(#3786)Arg::envviaArg::value_parserArgAction::SetFalse: Treat--flagas--flag=false(#3775)Arg::default_value("true")(#3786)Arg::envviaArg::value_parserArgAction::Count: Treat--flag --flag --flagas--flag=1 --flag=2 --flag=3(#3775)Arg::default_value("0")(#3786)Arg::envviaArg::value_parserArg::value_parser/Arg::actionwith either#[clap(value_parser)](#3589, #3742) /#[clap(action)]attributes (#3794)ValueParseris determined byvalue_parser!(#3199, #3496)ArgActionis determine by a hard-coded lookup on the type (#3794)Command::multicallis now stable for busybox-like programs and REPLs (#2861, #3684)ArgMatches::{try_,}contains_idfor checking if there are values for an argument that mirrors the newget_{one,many}APIFixes
default_value_ifs_os(#3815)parser
ArgMatches::value_sourceandArgMatches::occurrences_offor external subcommands (#3732)Arg::default_missing_values(#3761, #3765)Arg::default_value/Arg::envon value delimiters independent of whether--was used (#3765)requiredand its variants (#3793)v3.1.18Compare Source
Fixes
arg_enum!for users migrating to clap3 (#3717)required_unless_present_allarguments exist...when not enoughvalue_namesare suppliedgated behind
unstable-v4requiredis not used with conditional required settings (#3660)value_namesthannumber_of_values(#2695)""argument for external subcommands (#3263)Arg::idasverbatimcasing (#3282)v3.1.17Compare Source
Fixes
arg!macro to have dashes when quoted, like longsv3.1.16Compare Source
Fixes
Arg::exclusiveoverridesArg::required, like other conflictshelp_templatevariable{name}to fix problems with{bin}gated behind
unstable-v4Arg::longare no longer allowedCommand::display_namein the help title rather thanCommand::bin_namev3.1.15Compare Source
Fixes
v3.1.14Compare Source
Fixes
Command::buildwith a required positional argument nested several layers in subcommandsv3.1.13Compare Source
Fixes
Command::write_helpnow report required arguments in usage in more circumstancesdebugfeaturecolorfeature withdebugfeature enabledv3.1.12Compare Source
Fixes
v3.1.11Compare Source
Fixes
Arg::required, making the behavior consistent with how we calculate conflicts for error reportingArgGroupoverrideArg::required, making the behavior consistent with how we calculate conflicts for error reportingArg::overrides_withalways overrideArg::required, not just when the parser processes an overridev3.1.10Compare Source
Features
Command::buildfor custom help generation or other command introspection needsv3.1.9Compare Source
Fixes
clap_deriveversion so a compatible version is always used withclapv3.1.8Compare Source
Fixes
Debugimpls to more typesv3.1.7Compare Source
Fixes
ArgEnumwith non-unit unskipped variantsv3.1.6Compare Source
Fixes
cargofeature is neededv3.1.5Compare Source
Fixes
v3.1.4Compare Source
Features
PossibleValue::helpin long help (--help) (gated behindunstable-v4) (#3312)v3.1.3Compare Source
Fixes
v3.1.2Compare Source
Fixes
Documentation
v3.1.1Compare Source
Fixes
arg_enum!for users migrating to clap3 (#3717)required_unless_present_allarguments exist...when not enoughvalue_namesare suppliedgated behind
unstable-v4requiredis not used with conditional required settings (#3660)value_namesthannumber_of_values(#2695)""argument for external subcommands (#3263)Arg::idasverbatimcasing (#3282)v3.1.0Compare Source
Compatibility
Changes in behavior of note that are not guaranteed to be compatible across releases:
helpsubcommand shows long help like--help, rather than short help (-h), deprecatedclap::AppSettings::UseLongFormatForHelpSubcommand(#3440)Deprecations
clap::Commandis now preferred overclap::App(#3089 in #3472)clap::command!is now preferred overclap::app_from_crate(#3089 in #3474)clap::CommandFactory::commandis now preferred overclap::IntoApp::into_app(#3089 in #3473)helpsubcommand shows long help like--help, rather than short help (-h), deprecatedclap::AppSettings::UseLongFormatForHelpSubcommand(#3440)clap::AppSettings::WaitOnError, leaving it to the user to implementclap::Command::subcommand_required(true).arg_required_else_help(true)is now preferred overclap::AppSettings::SubcommandRequiredElseHelp(#3280)clap::AppSettingsare nearly all deprecated and replaced with builder methods and getters (#2717)clap::ArgSettingsis deprecated and replaced with builder methods and getters (#2717)clap::Arg::idandclap::ArgGroup::idare now preferred overclap::Arg::nameandclap::ArgGroup::name(#3335)clap::Command::next_help_headingis now preferred overclap::Command::help_heading(#1807, #1553)clap::error::ErrorKindis now preferred overclap::ErrorKind(#3395)clap::Error::kind()is now preferred overclap::Error::kindclap::Error::context()is now preferred overclap::Error::info(#2628)Note: All items deprecated in 3.0.0 are now hidden in the documentation. (#3458)
Features
clap::ArgMatches::value_sourceto determine what insert the value (#1345)clap::Command::next_display_order(#1807)clap::Error::contextAPI to open the door for fully-custom error messages (#2628)clap::error::ErrorKindnow implementsDisplayFixes
clap::Command::colorto override previous calls (#3449)ArgRequiredElseHelpprecedence overSubcommandRequired(#3456)clap::Command::arg_required_else_help, etc (#3076, #1264)-hconflicts (#3403)--help(#1549)clap::error::Result(#3395)Performance
clap::Error(#3395)Documentation
clap::Arg::validatorparseattributeConfiguration
📅 Schedule: Branch creation - "after 9pm,before 6am" in timezone Europe/Zurich, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.