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.0 #35

Merged
merged 1 commit into from
Dec 26, 2024
Merged

Update Rust crate clap to ~2.34.0 #35

merged 1 commit into from
Dec 26, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 26, 2024

This PR contains the following updates:

Package Type Update Change
clap dependencies minor ~2.27.0 -> ~2.34.0

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

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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/clap-2.x branch from d4dc8fd to 0a6a932 Compare December 26, 2024 12:50
@erhanbaris erhanbaris merged commit a1b206f into master Dec 26, 2024
1 check passed
@erhanbaris erhanbaris deleted the renovate/clap-2.x branch December 26, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant