This repository has been archived by the owner on Aug 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
bump(deps): update rust crate clap to 3.2 #74
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/clap-3.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defichain-bot
added
area/meta-node
kind/dependencies
Pull requests that update a dependency file
labels
Sep 7, 2022
✅ Deploy Preview for defimetachain ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Docker image for defich/metachain is ready! Built with commit c1adae4
|
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #74 +/- ##
========================================
+ Coverage 3.96% 6.63% +2.67%
========================================
Files 10 14 +4
Lines 1766 1823 +57
Branches 0 3 +3
========================================
+ Hits 70 121 +51
- Misses 1696 1702 +6 ☔ View full report in Codecov by Sentry. |
renovate
bot
force-pushed
the
renovate/clap-3.x
branch
from
October 5, 2022 08:39
91d8657
to
262c64c
Compare
✅ Deploy Preview for metachain ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
renovate
bot
changed the title
bump(deps): update rust crate clap to 3.2
Update Rust crate clap to 3.2
Dec 17, 2022
defichain-bot
removed
the
kind/dependencies
Pull requests that update a dependency file
label
Dec 17, 2022
renovate
bot
changed the title
Update Rust crate clap to 3.2
bump(deps): update rust crate clap to 3.2
Dec 17, 2022
defichain-bot
added
the
kind/dependencies
Pull requests that update a dependency file
label
Dec 17, 2022
renovate
bot
force-pushed
the
renovate/clap-3.x
branch
from
March 17, 2023 12:12
262c64c
to
5d08280
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
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.1
->3.2
Release Notes
clap-rs/clap (clap)
v3.2.25
Compare Source
[3.2.25] - 2023-04-27
Fixes
v3.2.24
Compare Source
[3.2.24] - 2023-04-25
Fixes
v3.2.23
Compare Source
[3.2.23] - 2022-10-24
Fixes
textwrap
0.16v3.2.22
Compare Source
[3.2.22] - 2022-09-16
Fixes
terminal_size
to the 0.2 releasev3.2.21
Compare Source
[3.2.21] - 2022-09-12
Features
TypedValueParser::map
to allow reusing existing value parsers for other purposesv3.2.20
Compare Source
[3.2.20] - 2022-09-02
Features
ArgMatches::get_count
help forArgAction::Count
ArgMatches::get_flag
help forArgAction::SetTrue
/ArgAction::SetFalse
v3.2.19
Compare Source
[3.2.19] - 2022-08-30
Fixes
args_conflicts_with_subcommand
v3.2.18
Compare Source
Fixes
Command::print_help
now respectsCommand::colored_help
v3.2.17
Compare Source
Fixes
#[clap(id = ...)]
attribute to match Arg's latest APIv3.2.16
Compare Source
Fixes
v3.2.15
Compare Source
Features
default_values_t
anddefault_values_os_t
attributesv3.2.14
Compare Source
Fixes
multiple_values
positional followed by another positional now works with multiple flagsv3.2.13
Compare Source
Documentation
v3.2.12
Compare Source
Fixes
v3.2.11
Compare Source
Features
Arg::get_all_short_aliaes
andArg::get_all_aliases
v3.2.10
Compare Source
Fixes
Command::mut_subcommand
v3.2.8
Compare Source
Features
Command::mut_subcommand
to mirrorCommand::mut_arg
v3.2.7
Compare Source
Fixes
v3.2.6
Compare Source
Fixes
--=
v3.2.5
Compare Source
Fixes
#[clap(default_value_os_t ...)]
introduced in v3.2.3v3.2.4
Compare Source
Fixes
#[clap(parse)]
attribute (#3832)v3.2.3
Compare Source
Fixes
deprecated
Cargo.toml feature (#3830)default as we release the next major version to help draw attention to the
deprecation migration path
v3.2.2
Compare Source
Fixes
gated behind
unstable-v4
#[clap(value_parser, action)]
instead of#[clap(parse)]
(#3827)v3.2.1
Compare Source
Fixes
Command::print_help
now respectsCommand::colored_help
v3.2.0
Compare Source
Compatibility
MSRV is now 1.56.0 (#3732)
Behavior
required
and its variants (#3793)ArgMatches::value_of
and 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::ArgEnum
toclap::ValueEnum
(#3799)Replaced
Arg::allow_invalid_utf8
withArg::value_parser(value_parser!(PathBuf))
(#3753)Arg::validator
/Arg::validator_os
withArg::value_parser
(#3753)Arg::validator_regex
with users providing their ownbuilder::TypedValueParser
(#3756)Arg::forbid_empty_values
withbuilder::NonEmptyStringValueParser
/builder::PathBufValueParser
(#3753)Arg::possible_values
withArg::value_parser([...])
,builder::PossibleValuesParser
, orbuilder::EnumValueParser
(#3753)Arg::max_occurrences
witharg.action(ArgAction::Count).value_parser(value_parser!(u8).range(..N))
for flags (#3797)Arg::multiple_occurrences
withArgAction::Append
orArgAction::Count
though positionals will needArg::multiple_values
(#3772, #3797)Command::args_override_self
withArgAction::Set
(#2627, #3797)AppSettings::NoAutoVersion
withArgAction
orCommand::disable_version_flag
(#3800)AppSettings::NoHelpVersion
withArgAction
orCommand::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_arg
withArgMatches::{try_get_one,try_get_many}
(#3753)ArgMatches::occurrences_of
withArgMatches::value_source
orArgAction::Count
(#3797)ArgMatches::is_present
withArgMatches::contains_id
orArgAction::SetTrue
(#3797)ArgAction::StoreValue
withArgAction::Set
orArgAction::Append
(#3797)ArgAction::IncOccurrences
withArgAction::SetTrue
orArgAction::Count
(#3797)#[clap(parse(...))]
replaced with: (#3589, #3794)parse
attribute), 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-v4
feature changes the defaultaway from
parse
toaction
/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 rightValueParser
automatically).
#[clap(parse(try_from_str = ...)]
, replace it with#[clap(value_parser = ...)]
TypedValueParser
will be needed and specify it with#[clap(value_parser = ...)]
Features
Arg::value_parser
/ArgMatches::{get_one,get_many}
(#2683, #3732)TypedValueParser
s available with an API open for expansionvalue_parser!(T)
macro for selecting a parser for a given type (#3732) and open to expansion via theValueParserFactory
trait (#3755)[&str]
is implicitly a value parser for possible valuesArgMatches
getters do not assume required arguments (#2505)ArgMatches::remove_*
variants to transfer ownershipArgMatches::try_*
variants to avoid panics for developer errors (#3621)get_raw
to access the underlyingOsStr
sPathBuf
value parsers implyValueHint::AnyPath
for completions (#3732)Arg::action
(#3774)ArgAction::StoreValue
: existingtakes_value(true)
behaviorArgAction::IncOccurrences
: existingtakes_value(false)
behaviorArgAction::Help
: existing--help
behaviorArgAction::Version
: existing--version
behaviorArgAction::Set
: Overwrite existing values (likeArg::multiple_occurrences
mixed withCommand::args_override_self
) (#3777)ArgAction::Append
: likeArg::multiple_occurrences
(#3777)ArgAction::SetTrue
: Treat--flag
as--flag=true
(#3775)Arg::default_value("false")
(#3786)Arg::env
viaArg::value_parser
ArgAction::SetFalse
: Treat--flag
as--flag=false
(#3775)Arg::default_value("true")
(#3786)Arg::env
viaArg::value_parser
ArgAction::Count
: Treat--flag --flag --flag
as--flag=1 --flag=2 --flag=3
(#3775)Arg::default_value("0")
(#3786)Arg::env
viaArg::value_parser
Arg::value_parser
/Arg::action
with either#[clap(value_parser)]
(#3589, #3742) /#[clap(action)]
attributes (#3794)ValueParser
is determined byvalue_parser!
(#3199, #3496)ArgAction
is determine by a hard-coded lookup on the type (#3794)Command::multicall
is now stable for busybox-like programs and REPLs (#2861, #3684)ArgMatches::{try_,}contains_id
for checking if there are values for an argument that mirrors the newget_{one,many}
APIFixes
default_value_ifs_os
(#3815)parser
ArgMatches::value_source
andArgMatches::occurrences_of
for external subcommands (#3732)Arg::default_missing_values
(#3761, #3765)Arg::default_value
/Arg::env
on value delimiters independent of whether--
was used (#3765)required
and its variants (#3793)v3.1.18
Compare Source
Fixes
arg_enum!
for users migrating to clap3 (#3717)required_unless_present_all
arguments exist...
when not enoughvalue_names
are suppliedgated behind
unstable-v4
required
is not used with conditional required settings (#3660)value_names
thannumber_of_values
(#2695)""
argument for external subcommands (#3263)Arg::id
asverbatim
casing (#3282)v3.1.17
Compare Source
Fixes
arg!
macro to have dashes when quoted, like longsv3.1.16
Compare Source
Fixes
Arg::exclusive
overridesArg::required
, like other conflictshelp_template
variable{name}
to fix problems with{bin}
gated behind
unstable-v4
Arg::long
are no longer allowedCommand::display_name
in the help title rather thanCommand::bin_name
v3.1.15
Compare Source
Fixes
v3.1.14
Compare Source
Fixes
Command::build
with a required positional argument nested several layers in subcommandsv3.1.13
Compare Source
Fixes
Command::write_help
now report required arguments in usage in more circumstancesdebug
featurecolor
feature withdebug
feature enabledv3.1.12
Compare Source
Fixes
v3.1.11
Compare Source
Fixes
Arg::required
, making the behavior consistent with how we calculate conflicts for error reportingArgGroup
overrideArg::required
, making the behavior consistent with how we calculate conflicts for error reportingArg::overrides_with
always overrideArg::required
, not just when the parser processes an overridev3.1.10
Compare Source
Features
Command::build
for custom help generation or other command introspection needsv3.1.9
Compare Source
Fixes
clap_derive
version so a compatible version is always used withclap
v3.1.8
Compare Source
Fixes
Debug
impls to more typesv3.1.7
Compare Source
Fixes
ArgEnum
with non-unit unskipped variantsv3.1.6
Compare Source
Fixes
cargo
feature is neededv3.1.5
Compare Source
Fixes
v3.1.4
Compare Source
Features
PossibleValue::help
in long help (--help
) (gated behindunstable-v4
) (#3312)v3.1.3
Compare Source
Fixes
v3.1.2
Compare Source
Fixes
Documentation
v3.1.1
Compare Source
Fixes
arg_enum!
for users migrating to clap3 (#3717)required_unless_present_all
arguments exist...
when not enoughvalue_names
are suppliedgated behind
unstable-v4
required
is not used with conditional required settings (#3660)value_names
thannumber_of_values
(#2695)""
argument for external subcommands (#3263)Arg::id
asverbatim
casing (#3282)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.