Update Rust crate clap to 4.1 by renovate[bot] · Pull Request #137 · zdz/ServerStatus-Rust
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| clap | dependencies | minor | 4.0 -> 4.1 |
Release Notes
clap-rs/clap
v4.1.4
Fixes
- (help) Respect
disable_colored_helpwhen usingarg_required_else_help
Performance
- Speed up compiling
arg!macro
v4.1.3
Fixes
- (error) Improve suggested flag/value/subcommand when two share a long preifx
- (error) When suggesting one of several subcommands, use the plural
subcommands, rather thansubcommand
v4.1.2
Fixes
- In documentation, refer to
get_flag, rather thanget_one::<bool>
v4.1.1
Fixes
- (error) Small softening attempt for "unexpected argument" error
v4.1.0
Compatibility
MSRV changed to 1.64.0
For apps with custom --help and --version flags:
- Descriptions for
--helpand--versionchanged
When apps have errors imitating clap's error style:
- Error message style was changed, including
- Moving away from "did you mean" to tips
- Leading letter is lower case
- "For more" added some punctuation
Features
ArgMatches::get_occurrencessupport for argument values to be grouped by their occurrence
Fixes
- (derive) Allow
upgrade_fromwhen arguments / subcommands are explicitly marked as required - (help) Try be more clearer and succinct with
--helpand--version(also helps with overflow) - (error) Try to be more clearer and succinct with error messages
- (error) Officially adopt an error style guide
v4.0.32
Fixes
- (parser) When overriding
required(true), consider args that conflict with its group
v4.0.31
Performance
- Speed up parsing when a lot of different flags are present (100 unique flags)
v4.0.30
Fixes
- (error) Improve error for
args_conflicts_with_subcommand
v4.0.29
v4.0.28
Fixes
- Fix wasm support which was broken in 4.0.27
v4.0.27
Features
- Have
Arg::value_parseracceptVec<impl Into<PossibleValue>> - Implement
DisplayandFromStrforColorChoice
Fixes
- Remove soundness issue by switching from
attytois-terminal
v4.0.26
Fixes
- (error) Fix typos in
ContextKind::as_str
v4.0.25
Features
- (error) Report available subcommands when required subcommand is missing
v4.0.24
Fixes
- Avoid panic when printing an argument that isn't built
v4.0.23
Fixes
- Don't panic on reporting invalid-long errors when followed by invalid UTF8
- (help) Clarified argument to
helpsubcommand
v4.0.22
Fixes
- (help) Don't overflow into next-line-help early due to stale (pre-v4) padding calculations
v4.0.21
Features
- (derive)
long_aboutandlong_helpattributes, without a value, force using doc comment (before it wouldn't be set if there wasn't anything different than the short help)
v4.0.20
Fixes
- (derive) Allow defaulted value parser for '()' fields
v4.0.19
Features
ColorChoicenow implementsValueEnum
v4.0.18
Fixes
- (derive) Allow
#[command(skip)]to also work with enum variants with a value
v4.0.17
Fixes
- Allow using
Arg::last(true)withArg::value_hint(ValueHint::CommandWithArguments)
v4.0.16
Fixes
Arg::exclusive(true)should not be exclusive with the argument's ownArgGroup
v4.0.15
Fixes
- (error) Don't suggest
--when it doesn't help - (error) Be more consistent in quoting, punctuation, and indentation in errors
v4.0.14
Fixes
- Only put
ArgGroupinArgMatcheswhen explicitly specified, fixing derives handling of option-flattened fields (#4375)
v4.0.13
Features
- (derive) Allow
()for fields to mean "don't read" (#4371)
v4.0.12
Features
- Added
TypedValueParser::try_mapfor when adapting an existingTypedValueParsercan fail - (error) Create errors like clap with
Error::new,Error::with_cmd, andError::insert
v4.0.11
Fixes
- (help) Fix wrapping calculations with ANSI escape codes
v4.0.10
Features
v4.0.9
Fixes
- (derive) Process doc comments for
#[command(subcommand)]like in clap v3
v4.0.8
Fixes
- (derive) Remove a low-value assert preventing defaulting
HelpandVersionactions
v4.0.7
Features
- (derive) Populate implicit ArgGroup (#3165)
Fixes
- (derive) Support
#[group(skip)]onParserderive - (derive) Tell users about implicit arg groups when running into group name conflicts
- (error) Don't report unrelated groups in conflict or requires errors
v4.0.6
Features
v4.0.5
v4.0.4
Fixes
- (error) Specialize the self-conflict error to look like clap v3
v4.0.3
Fixes
- (parser) When overriding
required(true), consider args that conflict with its group
v4.0.2
v4.0.1
Features
ColorChoicenow implementsValueEnum
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.
- If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.