PackageTrack
Sign in Get early access

clap

A simple to use, efficient, and full-featured Command Line Argument Parser

4.6.6 1.1B downloads/mo #34 most downloaded on crates.io clap-rs/clap

What this package is like to depend on

Last release 17 days ago

06 Aug 2026

Release timing varies

gaps range from 8 days to 3 months

Nearly every release is documented

notes for 313 of 347 stable releases

92 versions withdrawn

withdrawn after publishing

11 years old

461 releases · first in 2015

22 releases in the last 12 months

see the full history below

Release timeline

461 releases · Mar 2015 to Aug 2026
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 60 of 461
  1. 4.6.6 06 Aug 2026
    Release notes

    [4.6.6] - 2026-08-06

    Features

    • Add Command::get_overridden_usage
    Open source →
    Release notes

    Features

    • Add Command::get_overridden_usage
    Open source →
  2. 4.6.5 31 Jul 2026
    Release notes

    [4.6.5] - 2026-07-31

    Fixes

    • (help) Correctly mark which value_names are optional with num_args
    Open source →
    Release notes

    Fixes

    • (help) Correctly mark which value_names are optional with num_args
    Open source →
  3. 4.6.4 21 Jul 2026
    Release notes

    [4.6.4] - 2026-07-21

    Internal

    • Update to syn v3
    Open source →
    Release notes

    Internal

    • Update to syn v3
    Open source →
  4. 4.6.3 20 Jul 2026
    Release notes

    [4.6.3] - 2026-07-20

    Fixes

    • (derive) Allow "literal".function() as attribute values
    Open source →
    Release notes

    Fixes

    • (derive) Allow "literal".function() as attribute values
    Open source →
  5. 4.6.2 15 Jul 2026
    Release notes

    Fixes

    • (help) Say alias when there is only one
    Open source →
  6. 4.6.1 15 Apr 2026
    Release notes

    Fixes

    • (derive) Ensure rebuilds happen when an read env variable is changed
    Open source →
  7. 4.6.0 12 Mar 2026
    Release notes

    Compatibility

    • Update MSRV to 1.85
    Open source →
  8. 4.5.61 12 Mar 2026
    Release notes

    Internal

    • Update dependencies
    Open source →
  9. 4.5.60 19 Feb 2026
    Release notes

    Fixes

    • (help) Quote empty default values, possible values
    Open source →
  10. 4.5.59 16 Feb 2026
    Release notes

    Fixes

    • Command::ignore_errors no longer masks help/version on subcommands
    Open source →
  11. 4.5.58 11 Feb 2026

    Nothing published for this version

  12. 4.5.57 03 Feb 2026
    Release notes

    Fixes

    • Regression from 4.5.55 where having an argument with .value_terminator("--") caused problems with an argument with .last(true)
    Open source →
  13. 4.5.56 29 Jan 2026
    Release notes

    Fixes

    • On conflict error, don't show conflicting arguments in the usage
    Open source →
  14. 4.5.55 27 Jan 2026
    Release notes

    Fixes

    • Fix inconsistency in precedence between positionals with a value_terminator("--") and escapes (--) where ./foo -- bar means the first arg is empty, rather than escaping future args
    Open source →
  15. 4.5.54 02 Jan 2026
    Release notes

    Fixes

    • (help) Move [default] to its own paragraph when PossibleValue::help is present in --help
    Open source →
  16. 4.5.53 19 Nov 2025
    Release notes

    Features

    • Add default_values_if, default_values_ifs
    Open source →
  17. 4.5.52 17 Nov 2025
    Release notes

    Fixes

    • Don't panic when args_conflicts_with_subcommands conflicts with an ArgGroup
    Open source →
  18. 4.5.51 29 Oct 2025
    Release notes

    Fixes

    • (help) Correctly calculate padding for short flags that take a value
    • (help) Don't panic on short flags using ArgAction::Count
    Open source →
  19. 4.5.50 20 Oct 2025
    Release notes

    Features

    • Accept Cow where String and &str are accepted
    Open source →
  20. 4.5.49 13 Oct 2025
    Release notes

    Fixes

    • (help) Correctly wrap when ANSI escape codes are present
    Open source →
  21. 4.5.48 19 Sep 2025
    Release notes

    Documentation

    • Add a new CLI Concepts document as another way of framing clap
    • Expand the typed_derive cookbook entry
    Open source →
  22. 4.5.47 02 Sep 2025
    Release notes

    Features

    • Added impl FromArgMatches for ()
    • Added impl Args for ()
    • Added impl Subcommand for ()
    • Added impl FromArgMatches for Infallible
    • Added impl Subcommand for Infallible

    Fixes

    • (derive) Update runtime error text to match clap
    Open source →
  23. 4.5.46 26 Aug 2025
    Release notes

    Features

    • Expose StyledStr::push_str
    Open source →
  24. 4.5.45 12 Aug 2025
    Release notes

    Fixes

    • (unstable-v5) ValueEnum variants now use the full doc comment, not summary, for PossibleValue::help
    Open source →
  25. 4.5.44 11 Aug 2025
    Release notes

    Features

    • Add Command::mut_subcommands
    Open source →
  26. 4.5.43 06 Aug 2025
    Release notes

    Fixes

    • (help) In long help, list Possible Values before defaults, rather than after, for a more consistent look
    Open source →
  27. 4.5.42 30 Jul 2025
    Release notes

    Fixes

    • Include subcommand visible long aliases in --help
    Open source →
  28. 4.5.41 09 Jul 2025
    Release notes

    Features

    • Add Styles::context and Styles::context_value to customize the styling of [default: value] like notes in the --help
    Open source →
  29. 4.5.40 09 Jun 2025
    Release notes

    Features

    • Support quoted ids in arg!() macro (e.g. arg!("check-config": ...))
    Open source →
  30. 4.5.39 27 May 2025
    Release notes

    Fixes

    • (help) Show short flag aliases before long
    • (help) Merge the short and long flag alias lists
    Open source →
  31. 4.5.38 11 May 2025
    Release notes

    Fixes

    • (help) When showing aliases, include leading -- or -
    Open source →
  32. 4.5.37 18 Apr 2025
    Release notes

    Features

    • Added ArgMatches::try_clear_id()
    Open source →
  33. 4.5.36 11 Apr 2025
    Release notes

    Fixes

    • (help) Revert 4.5.35's "Don't leave space for shorts if there are none" for now
    Open source →
  34. 4.5.35 01 Apr 2025
    Release notes

    Fixes

    • (help) Align positionals and flags when put in the same help_heading
    • (help) Don't leave space for shorts if there are none
    Open source →
  35. 4.5.34 27 Mar 2025
    Release notes

    Fixes

    • (help) Don't add extra blank lines with flatten_help(true) and subcommands without arguments
    Open source →
  36. 4.5.33 26 Mar 2025
    Release notes

    Fixes

    • (error) When showing the usage of a suggestion for an unknown argument, don't show the group
    Open source →
  37. 4.5.32 10 Mar 2025
    Release notes

    Features

    • Add Error::remove

    Documentation

    • (cookbook) Switch from humantime to jiff
    • (tutorial) Better cover required vs optional

    Internal

    • Update pulldown-cmark
    Open source →
  38. 4.5.31 24 Feb 2025
    Release notes

    Features

    • Add ValueParserFactory for Saturating<T>
    Open source →
  39. 4.5.30 17 Feb 2025
    Release notes

    Fixes

    • (assert) Allow num_args(0..=1) to be used with SetTrue
    • (assert) Clean up rendering of takes_values assertions
    Open source →
  40. 4.5.29 11 Feb 2025
    Release notes

    Fixes

    • Change ArgMatches::args_present so not-present flags are considered not-present (matching the documentation)
    Open source →
  41. 4.5.28 03 Feb 2025
    Release notes

    Features

    • (derive) Unstable support for full markdown syntax for doc comments, enabled with unstable-markdown
    Open source →
  42. 4.5.27 20 Jan 2025
    Release notes

    Documentation

    • Iterate on tutorials and reference based on feedback
    Open source →
  43. 4.5.26 09 Jan 2025
    Release notes

    Fixes

    • (error) Reduce binary size with the suggestions feature
    Open source →
  44. 4.5.25 09 Jan 2025
    Release notes

    Fixes

    • (help) Reduce binary size
    Open source →
  45. 4.5.24 07 Jan 2025
    Release notes

    Fixes

    • (parser) Correctly handle defaults with ignore_errors(true) and when a suggestion is provided for an unknown argument
    Open source →
  46. 4.5.23 05 Dec 2024
    Release notes

    Fixes

    • (parser) When check allow_negative_numbers, allow E again
    Open source →
  47. 4.5.22 03 Dec 2024
    Release notes

    Fixes

    • (assert) Catch bugs with arguments requiring themself
    Open source →
  48. 4.5.21 13 Nov 2024
    Release notes

    Fixes

    • (parser) Ensure defaults are filled in on error with ignore_errors(true)
    Open source →
  49. 4.5.20 08 Oct 2024
    Release notes

    Features

    • (unstable) Add CommandExt
    Open source →
  50. 4.5.19 01 Oct 2024
    Release notes

    Internal

    • Update dependencies
    Open source →
  51. 4.5.18 20 Sep 2024
    Release notes

    Features

    • (builder) Expose Arg::get_display_order and Command::get_display_order
    Open source →
  52. 4.5.17 04 Sep 2024
    Release notes

    Fixes

    • (help) Style required argument groups
    • (derive) Improve error messages when unsupported fields are used
    Open source →
  53. 4.5.16 15 Aug 2024
    Release notes

    Fixes

    • (derive) Improve error messages when derive feature is missing
    Open source →
  54. 4.5.15 10 Aug 2024
    Release notes

    Compatiblity

    • (unstable-ext) Arg::remove changed return types

    Fixes

    • (unstable-ext) Make Arg::remove return the removed item
    Open source →
  55. 4.5.14 08 Aug 2024
    Release notes

    Features

    • (unstable-ext) Added Arg::add for attaching arbitrary state, like completion hints, to Arg without Arg knowing about it
    Open source →
  56. 4.5.13 31 Jul 2024
    Release notes

    Fixes

    • (derive) Improve error message when #[flatten]ing an optional #[group(skip)]
    • (help) Properly wrap long subcommand descriptions in help
    Open source →
  57. 4.5.12 31 Jul 2024

    Nothing published for this version

  58. 4.5.11 25 Jul 2024

    Nothing published for this version

  59. 4.5.10 23 Jul 2024

    Nothing published for this version

  60. 4.5.9 09 Jul 2024
    Release notes

    Fixes

    • (error) When defining a custom help flag, be sure to suggest it like we do the built-in one
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive