Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Rust crate clap to 2.34 #3

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Update Rust crate clap to 2.34 #3

merged 1 commit into from
Nov 9, 2023

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Nov 7, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
clap dependencies minor 2.24 -> 2.34

Release Notes

clap-rs/clap (clap)

v2.34.0

Compare Source

  • Updates to Rust 2018 edition and bumps the MSRV to Rust 1.46

v2.33.4

Compare Source

Bug Fixes
  • prevents panic: swallows broken pipe errors on error output (7a729bc4)

v2.33.3

Compare Source

Improvements
  • Suppress deprecation warnings when using crate_* macros.

v2.33.2

Compare Source

Documentation
  • Fixed links to 2.x examples. Now they point to the right place.

v2.33.1

Compare Source

Bug Fixes
  • Windows: Prevent some panics when parsing invalid Unicode on Windows (922c645, closes #​1905)
Documentation
  • fixes versions referenced in the README (d307466a)
  • README.md:
    • cuts down the number of examples to reduce confusion (6e508ee0)
Improvements
  • Deps: doesnt compile ansi_term on Windows since its not used (b57ee946, closes #​1155)
Minimum Required Rust
  • As of this release, clap requires rustc 1.36.0 or greater.

v2.33.0

Compare Source

New Sponsor
  • Stephen Oats is now a sponsor \o/ (823457c0)
  • SPONSORS.md: fixes Josh Triplett's info in the sponsor document (24cb5740)
Features
  • Completions: adds completion support for Elvish. (e9d0562a)
  • There is a new setting to disable automatic building of --help and -h flags (AppSettings::DisableAutoHelp)
Improvements
  • arg_matches.rs: add Debug implementations (47192b7a)
  • macros: Support shorthand syntax for ArgGroups (df9095e7)
Documentation
  • Refer to macOS rather than OSX. (ab0d767f)
  • README.md: use https for all links (96a7639a)
Bug Fixes
  • add debug assertion for missing args in subcommand ArgGroup (2699d9e5)
  • Restore compat with Rust 1.21 (6b263de1)
  • Don't mention unused subcommands (ef92e2b6)
  • OsValues: Add ExactSizeIterator implementation (356c69e5)
  • arg_enum!:
    • Fix comma position for valid values. (1f1f9ff3)
    • Invalid expansions of some trailing-comma patterns (7023184f)
  • completions: improve correctness of completions when whitespace is involved (5a08ff29)
  • help message: Unconditionally uses long description for subcommands (6acc8b6a, closes #​897)
  • macros: fixes broken pattern which prevented calling multi-argument Arg methods (9e7a352e)
  • parser: Better interaction between AllowExternalSubcommands and SubcommandRequired (9601c95a)
Minimum Required Rust
  • As of this release, clap requires rustc 1.31.0 or greater.

v2.32.0

Compare Source

Minimum Required Rust
  • As of this release, clap requires rustc 1.21.0 or greater.
Features
  • Completions: adds completion support for Elvish. (e9d0562a)
Improvements
  • macros: Support shorthand syntax for ArgGroups (df9095e7)
Bug Fixes
  • OsValues: Add ExactSizeIterator implementation (356c69e5)
  • arg_enum!: Invalid expansions of some trailing-comma patterns (7023184f)
  • help message: Unconditionally uses long description for subcommands (6acc8b6a, closes #​897)
Documentation
  • Refer to macOS rather than OSX. (ab0d767f)

v2.31.2

Bug Fixes
  • Fish Completions: fixes a bug that only allowed a single completion in in Fish Shell (e8774a8, closes #​1212)
  • AllowExternalSubcommands: fixes a bug where external subcommands would be blocked by a similarly named subcommand (suggestions were getting in the way). (a410e85)
Documentation
  • Fixes some typos in the README.md (c8e685d7)

v2.31.1

Improvements
  • AllowMissingPositional: improves the ability of AllowMissingPositional to allow 'skipping' to the last positional arg with '--' (df20e6e2)

v2.31.0

Features
  • Arg Indices: adds the ability to query argument value indices (f58d0576)
  • Indices: implements an Indices<Item=&usize> iterator (1e67be44)
  • Raw Args adds a convenience function to Arg that allows implying all of Arg::last Arg::allow_hyphen_values and Arg::multiple(true) (66a78f29)
Documentation
Improvements
  • Cargo.toml: use codegen-units = 1 in release and bench profiles (19f425ea)
  • Adds WASM support (clap now compiles on WASM!) (689949e5)
  • Uses the short help tool-tip for PowerShell completion scripts (ecda22ce)

v2.30.0

Bug Fixes
  • YAML: Adds a missing conversion from Arg::last when instantiating from a YAML file (aab77c81a5, closes #​1160)
Improvements
  • Bash Completions: instead of completing a generic option name, all bash completions fall back to file completions UNLESS Arg::possible_values was used (872f02ae)
  • Deps: No longer needlessly compiles ansi_term on Windows since its not used (b57ee946, closes #​1155)
  • Help Message: changes the [values: foo bar baz] array to [possible values: foo bar baz] for consistency with the API (414707e4e97, closes #​1160)

v2.29.4

Bug Fixes
  • Overrides Self: fixes a bug where options with multiple values couldn't ever have multiple values (d95907cf)

v2.29.3

Improvements
  • Overrides: clap now supports arguments which override with themselves (6c7a0010, closes #​976)
Bug Fixes
  • Requirements: fixes an issue where conflicting args would still show up as required (e06cefac, closes #​1158)
  • Fixes a bug which disallows proper nesting of -- (73993fe, closes #​1161)
New Settings
  • AllArgsOverrideSelf: adds a new convenience setting to allow all args to override themselves (4670325d)

v2.29.2

Features
  • completions/zsh.rs:
    • Escape possible values for options (25561dec)
    • Implement positional argument possible values completion (f3b0afd2)
    • Complete positional arguments properly (e39aeab8)
Bug Fixes
  • completions/zsh.rs:
    • Add missing autoload for is-at-least (a6522607)
    • Don't pass -S to _arguments if Zsh is too old (16b4f143)
    • Maybe fix completions with mixed positionals and subcommands (1146f0da)
  • completions/zsh.zsh: Remove redundant code from output (0e185b92, closes #​1142)
2.29.1 (2018-01-09)
Documentation
Performance
  • further debloating by removing generics from error cases (eb8d919e)
  • debloats clap by deduplicating logic and refactors (03e413d7)
Bug Fixes
  • fixes the ripgrep benchmark by adding a value to a flag that expects it (d26ab2b9)
  • bash completion: Change the bash completion script code generation to support hyphens. (ba7f1d18)
  • completions/zsh.rs: Fix completion of long option values (46365cf8)

v2.29.1

Documentation
Performance
  • further debloating by removing generics from error cases (eb8d919e)
  • debloats clap by deduplicating logic and refactors (03e413d7)
Bug Fixes
  • fixes the ripgrep benchmark by adding a value to a flag that expects it (d26ab2b9)
  • bash completion: Change the bash completion script code generation to support hyphens. (ba7f1d18)
  • completions/zsh.rs: Fix completion of long option values (46365cf8)

v2.29.0

API Additions
  • Arg: adds Arg::hide_env_values(bool) which allows one to hide any current env values and display only the key in help messages (fb41d062)

v2.28.0

The minimum required Rust is now 1.20. This was done to start using bitflags 1.0 and having >1.0 deps is a very good thing!

Documentation
  • changes the demo version to 2.28 to stay in sync (ce6ca492)
  • Fix URL path to github hosted files (ce72aada, closes #​1106)
  • fix typo (002b07fc)
  • README.md: updates the readme and pulls out some redundant sections (db6caf86)
Improvements
  • adds '[SUBCOMMAND]' to usage strings with only AppSettings::AllowExternalSubcommands is used with no other subcommands (e78bb757, closes #​1093)
API Additions
  • Adds Arg::case_insensitive(bool) which allows matching Arg::possible_values without worrying about ASCII case (1fec268e, closes #​1118)
  • Adds the traits to be used with the clap-derive crate to be able to use Custom Derive (6f4c3412)
Bug Fixes
  • Fixes a regression where --help couldn't be overridden (a283d69f, closes #​1112)
  • fixes a bug that allowed options to pass parsing when no value was provided (2fb75821, closes #​1105)
  • ignore PropagateGlobalValuesDown deprecation warning (f61ce3f5, closes #​1086)
Deps
  • Updates bitflags to 1.0

v2.27.1

Bug Fixes
  • Adds term_size as an optional dependency (with feature wrap_help) to fix compile bug

v2.27.0

** This release raises the minimum required version of Rust to 1.18 **

** This release also contains a very minor breaking change to fix a bug **

The only CLIs affected will be those using unrestrained multiple values and subcommands where the
subcommand name can coincide with one of the multiple values.

See the commit 0c223f54 for full details.

Bug Fixes
  • Values from global args are now propagated UP and DOWN!
  • fixes a bug where using AppSettings::AllowHyphenValues would allow invalid arguments even when there is no way for them to be valid (77ed4684, closes #​1066)
  • when an argument requires a value and that value happens to match a subcommand name, its parsed as a value (0c223f54, closes #​1031, breaks #, #)
  • fixes a bug that prevented number_of_values and default_values to be used together (5eb342a9, closes #​1050, #​1056)
  • fixes a bug that didn't allow args with default values to have conflicts (58b5b4be, closes #​1071)
  • fixes a panic when using global args and calling App::get_matches_from_safe_borrow multiple times (d86ec797, closes #​1076)
  • fixes issues and potential regressions with global args values not being propagated properly or at all (a43f9dd4, closes #​1010, #​1061, #​978)
  • fixes a bug where default values are not applied if the option supports zero values (9c248cbf, closes #​1047)
Documentation
  • adds additional blurbs about using multiples with subcommands (03455b77)
  • updates the docs to reflect changes to global args and that global args values can now be propagated back up the stack (ead076f0)
  • add html_root_url attribute (e67a061b)
  • sync README version numbers with crate version (5536361b)
Improvements
  • args that have require_delimiter(true) is now reflected in help and usage strings (dce61699, closes #​1052)
  • if all subcommands are hidden, the subcommands section of the help message is no longer displayed (4ae7b046, closes #​1046)
Breaking Changes
  • when an argument requires a value and that value happens to match a subcommand name, its parsed as a value (0c223f54, closes #​1031, breaks #, #)
Deprecations
  • AppSettings::PropagateGlobalValuesDown: this setting is no longer required to propagate values down or up (2bb5ddce)

v2.26.2

Improvements
  • if all subcommands are hidden, the subcommands section of the help message is no longer displayed (4ae7b046, closes #​1046)
Bug Fixes
  • fixes a bug where default values are not applied if the option supports zero values (9c248cbf, closes #​1047)

v2.26.1

Bug Fixes
  • fixes using require_equals(true) and min_values(0) together (10ae208f, closes #​1044)
  • escape special characters in zsh and fish completions (87e019fc)
  • avoid panic generating default help msg if term width set to 0 due to bug in textwrap 0.7.0 (b3eadb0d)
  • Change who's -> whose (53c1ffe8)
  • adds a debug assertion to ensure all args added to groups actually exist (7ad123e2, closes #​917)
  • fixes a bug where args that allow values to start with a hyphen couldn't contain a double hyphen -- as a value (ab2f4c9e, closes #​960)
  • fixes a bug where positional argument help text is misaligned (54c16836)
  • Help Message: fixes long_about not being usable (a8257ea0, closes #​1043)
  • Suggestions: output for flag after subcommand (434ea5ba)

v2.26.0

Minimum version of Rust is now v1.13.0 (Stable)

Improvements
  • bumps unicode-segmentation to v1.2 (cd7b40a2)
Performance
  • update textwrap to version 0.7.0 (c2d4e637)

v2.25.1

Improvements
  • impl Default for Values + OsValues for any lifetime. (fb7d6231f1)
Documentation
  • Various documentation typos and grammar fixes

v2.25.0

Features
  • use textwrap crate for wrapping help texts (b93870c1)
Improvements
  • Suggestions: suggests to use flag after subcommand when applicable (2671ca72)
  • Bumps bitflags crate to v0.9
Documentation
Documentation
  • App::template: adds details about the necessity to use AppSettings::UnifiedHelpMessage when using {unified} tags in the help template (cbea3d5a, closes #​949)
  • Arg::allow_hyphen_values: updates the docs to include warnings for allow_hyphen_values and multiple(true) used together (f9b0d657)
  • README.md:
  • clap_app!: adds using the @​group specifier to the macro docs (826048cb, closes #​932)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

Update clap from 2.24.2 to 2.34.0

Change-type: patch
@renovate renovate bot merged commit b8f4668 into master Nov 9, 2023
4 checks passed
@renovate renovate bot deleted the renovate/clap-2.x branch November 9, 2023 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants