discord-channel-archiver
discord-channel-archiver copied to clipboard
Update Rust crate clap to 4.5.4
This PR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
clap | dependencies | minor | 4.0.32 -> 4.5.4 |
Release Notes
clap-rs/clap (clap)
v4.5.4
Fixes
-
(derive) Allow non-literal
#[arg(id)]
attributes again
v4.5.3
Internal
-
(derive) Update
heck
v4.5.2
Fixes
- (macros) Silence a warning
v4.5.1
Fixes
-
(error) Include suggestion to add
--
even if there is a "did you mean" so long aslast
ortrailing_var_arg
is used
v4.5.0
Compatibility
- Update MSRV to 1.74
v4.4.18
Fixes
-
(error) When lacking
usage
feature, ensure the list of required arguments is unique
v4.4.17
Fixes
- Fix
panic!
when mixingargs_conflicts_with_subcommands
withArgGroup
(which is implicit withderive
) introduced in 4.4.15
v4.4.16
Fixes
- Ensure invalid escape sequences in user-defined strings are correctly stripped when terminal doesn't support color
v4.4.15
Fixes
- Improve error for
args_conflicts_with_subcommands
- Ensure we error for
args_conflicts_with_subcommands
when using subcommand short and long flags
v4.4.14
Documentation
- Fix
find
cookbook entry to allow repeats of flags/options
Features
- Allow
num_args(0)
on options which allows making them emulate being a flag for position-tracking flags
v4.4.13
Documentation
- Fix link to structopt migration guide
v4.4.12
Performance
- Only ask
TypedValueParser
for possible values if needed
v4.4.11
Features
- Add
Command::mut_group
v4.4.10
Documentation
- Link out to changelog
- Cross link derive's attribute reference to derive tutorial
v4.4.9
Fixes
-
(help) Show correct
Command::about
under flattened headings -
(help) Respect
hide
when flattening subcommands
v4.4.8
Features
- Add
Command::flatten_help
to allowgit stash -h
like help for subcommands
v4.4.7
Performance
- Reduced code size
v4.4.6
Internal
- Upgrade
anstream
v4.4.5
Fixes
-
(parser) When inferring subcommand
name
orlong_flag
, allow ambiguous-looking matches that unambiguously map back to the same command -
(parser) When inferring subcommand
long_flag
, don't panic - (assert) Clarify what action is causing a positional that doesn't set values which is especially useful for derive users
v4.4.4
Internal
- Update
terminal_size
to 0.3
v4.4.3
Documentation
- (derive) Clarify use of attributes within the tutorial
- Split sections in the builder and derive tutorials into separate modules
v4.4.2
Performance
- Improve build times by removing
once_cell
dependency
v4.4.1
Fixes
-
(error) When lacking
usage
feature, ensure the list of required arguments is unique
v4.4.0
compatibility
- update msrv to 1.70.0
v4.3.24
Fixes
- Ensure column padding is preserved in
--help
with custom templates
v4.3.23
Fixes
- Fixed
UnknownArgumentValueParser
to not error on flag's absence
v4.3.22
Features
- Add
UnknownArgumentValueParser
for injecting errors for improving the experience with errors
v4.3.21
Features
- Expose
TryMapValueParser
so the type can be named
v4.3.20
Features
-
Command::mut_args
for modifying all arguments en masse
v4.3.19
Fixes
-
(parse) Respect
value_terminator
even in the presence of later multiple-value positional arguments
v4.3.18
Fixes
-
(parse) Suggest
--
in fewer places where it won't work
v4.3.17
Fixes
-
(help) Address a regression in wrapping
PossibleValue
descriptions in--help
v4.3.16
Fixes
- Don't assert when stateful value parsers fail on defaults (e.g. checking if a path exists)
v4.3.15
Features
-
(unstable-styles) Re-export
anstyle
Documentation
- (unstable-styles) Provide more examples
v4.3.14
Features
-
ArgAction::HelpShort
andArgAction::HelpLong
for explicitly specifying which style of help to display
Fixes
- Skip
[OPTIONS]
in usage if a help or versionArgAction
is used
v4.3.13
v4.3.12
Fixes
- (derive) Don't error on enum variant field attributes
v4.3.11
Features
-
(derive) Support fields wrapped in
num::Wrapping
,Box
, orArc
-
(derive) Support
Box<str>
,Box<OsStr>
, andBox<Path>
v4.3.10
Performance
- Drop a dependency, reducing binary size by 1.3 KiB
v4.3.9
Fixes
-
Command::ignore_errors
no longer masks help/version
v4.3.8
Fixes
- Error on ambiguity with
infer_long_arg
, rather than arbitrarily picking one, matching the documentation and subcommand's behavior
v4.3.7
Documentation
- Further clarify magic behavior in derive tutorial
- Further clarify derive API's relationship to builder within the tutorial
v4.3.6
Documentation
- Suggest
clio
v4.3.5
-
ColorChoice::possible_values
is added to simplify things for builder users
Fixes
-
ColorChoice::to_possible_value
no longer includes descriptions, encouraging shorter help where possible
v4.3.4
Features
- Add
Error::exit_code
v4.3.3
Features
-
Command::defer
for delayed initialization of subcommands to reduce startup times of large applications like deno
v4.3.2
Fixes
- Ensure column padding is preserved in
--help
with custom templates
v4.3.1
Fixes
-
(parse) Respect
value_terminator
even in the presence of later multiple-value positional arguments
v4.3.0
Fixes
- (assert) Allow multiple, value-terminated, positional arguments
-
(assert) Clear up language on
last
assertion - (parser) Correctly assign values to arguments when using multiple, value-termianted, positional arguments
-
(parser) Ensure
value_terminator
has higher precedence thanallow_hyphen_values
-
(help) Only use next-line-help on subcommand list when explicitly specified, not just with
--help
- (help) Correctly align possible values list
- (help) Don't waste code, vertical space in moving possible value descriptions to next line
v4.2.7
Fixes
- Correctly track remaining length for iterators provided by
ArgMatches
v4.2.6
Features
-
impl Eq<std::any::TypeId> for clap_builder::util::AnyValueId
v4.2.5
Fixes
- Improve panic when a group requires a non-existent ID
v4.2.4
Documentation
- Corrected docs for
Command::style
v4.2.3
Features
-
Command::styles
for theming help/errors (behindunstable-styles
)
v4.2.2
Internal
- Update dependencies
v4.2.1
Fixes
- Don't highlight uninteresting parts of the error message
v4.2.0
Compatibility
- Removed the languishing
unstable-replace
feature (open to discussion at #2836) - Removed the stablized
unstable-grouped
feature
Features
- Allow any
StyledStr
to accept text styled with ANSI escape codes - Respect
CLICOLOR
,CLICOLOR_FORCE
Fixes
- Lighten the tone for "unexpected argument" errors (open to discussion at #4638)
v4.1.14
Features
-
(derive)
#[group]
raw attribute support
Performance
-
(derive)
clap_builder
was pulled out ofclap
so it could build in parallel toclap_derive
-
os_str_bytes
dependency was removed for faster builds and smaller binaries
v4.1.13
Performance
- Reduce repeated alloc calls when building a
Command
- Reduce duplicate dependencies for faster builds
v4.1.12
Internal
-
(derive) Update to
syn
v2
Performance
-
(derive) Faster build times by dropping
proc-macro-error
dependency
v4.1.11
Internal
- Update
bitflags
v4.1.10
Fixes
- (help) On Windows, avoid underlined text artifacts
v4.1.9
Fixes
-
(assert) Improve the assert when using the wrong action with
get_count
/get_flag
v4.1.8
Fixes
-
(derive) Don't
deny
lints on the users behalf
v4.1.7
Fixes
- (derive) Hide some nightly clippy warnings
v4.1.6
Fixes
-
(help) Don't show long help for
--help
just because hidden possible values include a description
v4.1.5
Fixes
-
(help) Don't show long help for
--help
just because a hidden arg has a possible value with a description
v4.1.4
Fixes
-
(help) Respect
disable_colored_help
when 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
Features
-
(derive)
#[group]
raw attribute support
Performance
-
(derive)
clap_builder
was pulled out ofclap
so it could build in parallel toclap_derive
-
os_str_bytes
dependency was removed for faster builds and smaller binaries
v4.1.0
Compatibility
MSRV changed to 1.64.0
For apps with custom --help
and --version
flags:
- Descriptions for
--help
and--version
changed
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_occurrences
support for argument values to be grouped by their occurrence
Fixes
-
(derive) Allow
upgrade_from
when arguments / subcommands are explicitly marked as required -
(help) Try be more clearer and succinct with
--help
and--version
(also helps with overflow) - (error) Try to be more clearer and succinct with error messages
- (error) Officially adopt an error style guide
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.