clap

A full featured, fast Command Line Argument Parser for Rust

APACHE-2.0 License

Downloads
712.3M
Stars
13.4K
Committers
524

Bot releases are hidden (Show)

clap - v1.5.0 - Huge performance inprovements

Published by Vinatorul almost 9 years ago

v1.5.0 (2015-11-13)

Bug Fixes

  • fixes a bug with required positional args in usage strings (c6858f78)

Documentation

  • FAQ: updates readme with slight changes to FAQ (a4ef0fab)

Improvements

  • massive errors overhaul (cdc29175)
  • ArgMatcher: huge refactor and deduplication of code (8988853f)
  • Errors: errors have been vastly improved (e59bc0c1)
  • Traits: refactoring some configuration into traits (5800cdec)

Performance

  • App:
    • more BTreeMap->Vec, Opts and SubCmds (bc4495b3)
    • changes flags BTreeMap->Vec (d357640f)
    • removed unneeded BTreeMap (78971fd6)
    • changes BTreeMap to VecMap in some instances (64b921d0)
    • removed excess clones (ec0089d4)
clap -

Published by kbknapp almost 9 years ago

v1.4.7 (2015-11-03)

Documentation

  • Clarify behavior of Arg::multiple with options. (434f497a)
  • Fix typos and improve grammar. (c1f66b5d)

Bug Fixes

  • Error Status: fixes bug where --help and --version return non-zero exit code (89b51fdf)
clap - v1.4.6

Published by Vinatorul almost 9 years ago

v1.4.6 (2015-10-29)

Features

  • allows parsing without a binary name for daemons and interactive CLIs (aff89d57, closes #318)

Bug Fixes

  • Errors: tones down quoting in some error messages (34ce59ed, closes #309)
  • Help and Version: only builds help and version once (e3be87cf)
  • Option Args: fixes bug with args and multiple values (c9a9548a, closes #323)
  • POSIX Overrides: fixes bug where required args are overridden (40ed2b50)
  • Safe Matches: using 'safe' forms of the get_matches family no longer exit the process (c47025dc, closes #256)
  • Versionless SubCommands: fixes a bug where the -V flag was needlessly built (27df8b9d, closes #329)

Documentation

clap - v1.4.5

Published by kbknapp about 9 years ago

v1.4.5 (2015-10-06)

Bug Fixes

  • fixes crash on invalid arg error (c78ce128)
clap - v1.4.4

Published by Vinatorul about 9 years ago

v1.4.4 (2015-10-06)

Documentation

  • clean up some formatting (b7df92d7)
  • move the crate-level docs to top of the lib.rs file (d7233bf1)
  • changes doc comments to rustdoc comments (34b601be)
  • fixes panic in 14_groups example (945b00a0, closes #295)
  • avoid suggesting star dependencies. (d33228f4)
  • Rustdoc: adds portions of the readme to main rustdoc page (6f9ee181, closes #293)

Bug Fixes

  • grammar error in some conflicting option errors (e73b07e1)
  • Unified Help: sorts both flags and options as a unified category (2a223dad)
  • Usage: fixes a bug where required args aren't filtered properly (72b453dc, closes #277)
  • Usage Strings: fixes a bug ordering of elements in usage strings (aaf0d6fe, closes #298)

Features

  • supports -aValue style options (0e3733e4)
  • Trailing VarArg: adds opt-in setting for final arg being vararg (27018b18, closes #278)
clap - v1.4.3

Published by Vinatorul about 9 years ago

v1.4.3 (2015-09-30)

Features

  • allows accessing arg values by group name (c92a4b9e)

Documentation

  • use links to examples instead of plain text (bb4fe237)

Bug Fixes

  • Help Message: required args no longer double list in usage (1412e639, closes #277)
  • Possible Values: possible value validation is restored (f121ae74, closes #287)
clap - v1.4.2

Published by Vinatorul about 9 years ago

v1.4.2 (2015-09-23)

Bug Fixes

  • Conflicts: fixes bug with conflicts not removing required args (e17fcec5, closes #271)
clap - v1.4.1

Published by Vinatorul about 9 years ago

v1.4.1 (2015-09-22)

Examples

Features

  • Unicode: allows non-panicing on invalid unicode characters (c5bf7ddc)

Documentation

  • properly names Examples section for rustdoc (87ba5445)
  • fixes various typos and spelling (f85640f9)
  • Arg: unhides fields of the Arg struct (931aea88)

Bug Fixes

  • flush the buffer in App::print_version() (cbc42a37)
  • Macro benchmarks (13712da1)
clap - v1.4.0

Published by Vinatorul about 9 years ago

v1.4.0 (2015-09-09)

Features

  • allows printing help message by library consumers (56b95f32)
  • allows defining hidden args and subcmds (2cab4d03, closes #231)
  • Builder macro to assist with App/Arg/Group/SubCommand building (443841b0)
  • Errors: allows consumers to write to stderr and exit on error (1e6403b6)
clap - v1.3.2

Published by kbknapp about 9 years ago

v1.3.2 (2015-09-08)

Documentation

  • fixed ClapErrorType docs (dd057843)
  • ClapErrorType: changed examples content (b9ca2616)

Bug Fixes

  • fixes a bug where the help subcommand wasn't overridable (94003db4)

Features

  • adds abiltiy not consume self when parsing matches and/or exit on help (94003db4)
  • App: Added ability for users to handle errors themselves (934e6fbb)
clap -

Published by kbknapp about 9 years ago

v1.3.1 (2015-09-04)

Examples

Performance

  • changes ArgGroup HashSets to Vec (3cb4a48e)
  • changes BTreeSet for Vec in some instances (baab2e3f)
clap -

Published by Vinatorul about 9 years ago

v1.3.0 (2015-09-01)

Features

  • YAML: allows building a CLI from YAML files (86cf4c45)
  • ArgGroups: adds support for building ArgGroups from yaml (ecf88665)
  • Subcommands: adds support for subcommands from yaml (e415cf78)

Documentation

  • YAML: adds examples for using YAML to build a CLI (ab41d7f3)
  • Args from YAML: fixes doc examples (19b348a1)
  • Examples: adds better usage examples instead of having unused variables (8cbacd88)

Examples

Bug Fixes

  • Unified Help Messages: fixes a crash from this setting and no opts (169ffec1, closes #210)
clap -

Published by kbknapp about 9 years ago

v1.2.5 (2015-08-27)

Examples

Features

  • Args: allows opts and args to define a name for help and usage msgs (ad962ec4)
clap -

Published by kbknapp about 9 years ago

v1.2.4 (2015-08-26)

Bug Fixes

  • Possible Values: fixes a bug where suggestions arent made when using --long=value format (3d5e9a6c, closes #192)
clap -

Published by kbknapp about 9 years ago

v1.2.3 (2015-08-24)

Bug Fixes

  • App, Args: fixed subcommand reqs negation (b41afa8c, closes #188)
clap - Bug Fixes and new collaborator!

Published by kbknapp about 9 years ago

Thanks to all the awesome work Vinatorul has been doing on clap he's been added as an official collaborator to the project! Keep up the great work!

Here's the usual release notes thanks to clog:

v1.2.2 (2015-08-23)

Bug Fixes

  • fixed confusing error message, also added test for it (fc7a31a7)
  • App: fixed requirmets overriding (9c135eb7)
clap -

Published by kbknapp about 9 years ago

v1.2.1 (2015-08-20)

Documentation

  • README.md: updates for new features (16cf9245)

Features

  • implements posix compatible conflicts for long args (8c2d48ac)
  • added overrides to support conflicts in POSIX compatible manner (0b916a00)
  • Args: allows defining POSIX compatible argument conflicts (d715646e)

Bug Fixes

  • fixed links in cargo and license buttons (6d9837ad)

Performance

  • Args and Apps: changes HashSet->Vec in some instances for increased performance (d0c3b379)
clap - Custom Validations and more!

Published by kbknapp about 9 years ago

v1.2.0 (2015-08-15)

Bug Fixes

Documentation

  • updates docs for new features (03496547)
  • fixed docs for previous changes (ade36778)

Improvements

  • AppSettings: adds ability to add multiple settings at once (4a00e251)

Features

  • Replace application level settings with enum variants (618dc4e2)
  • Args: allows for custom argument value validations to be defined (84ae2ddb, closes #170)
clap -

Published by kbknapp about 9 years ago

v1.1.6 (2015-08-01)

Bug Fixes

  • fixes two bugs in App when printing newlines in help and subcommands required error (d63c0136)
clap -

Published by kbknapp about 9 years ago

v1.1.5 (2015-07-29)

Performance

  • removes some unneeded allocations (93e915df)