You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
updates readme for v2 release (acaba01a, closes #393)
fix typo and make documentation conspicuous (07b9f614)
BREAKING CHANGES
Fewer liftimes! Yay!
App<'a, 'b, 'c, 'd, 'e, 'f> => App<'a, 'b>
Arg<'a, 'b, 'c, 'd, 'e, 'f> => Arg<'a, 'b>
ArgMatches<'a, 'b> => ArgMatches<'a>
Simply Renamed
App::arg_group => App::group
App::arg_groups => App::groups
ArgGroup::add => ArgGroup::arg
ArgGroup::add_all => ArgGroup::args
ClapError => Error
struct field ClapError::error_type => Error::kind
ClapResult => Result
ClapErrorType => ErrorKind
Removed Deprecated Functions and Methods
App::subcommands_negate_reqs
App::subcommand_required
App::arg_required_else_help
App::global_version(bool)
App::versionless_subcommands
App::unified_help_messages
App::wait_on_error
App::subcommand_required_else_help
SubCommand::new
App::error_on_no_subcommand
Arg::new
Arg::mutually_excludes
Arg::mutually_excludes_all
Arg::mutually_overrides_with
simple_enum!
Renamed Error Variants
InvalidUnicode => InvalidUtf8
InvalidArgument => UnknownArgument
Usage Parser
Value names can now be specified inline, i.e. -o, --option <FILE> <FILE2> 'some option which takes two files'
There is now a priority of order to determine the name - This is perhaps the biggest breaking change. See the documentation for full details. Prior to this change, the value name took precedence. Ensure your args are using the proper names (i.e. typically the long or short and NOT the value name) throughout the code
ArgMatches::values_of returns an Values now which implements Iterator (should not break any code)
crate_version! returns &'static str instead of String