Commit graph

3926 commits

Author SHA1 Message Date
Severen Redwood
3e8891c00b Fix typos in the documentation for the clap::App struct 2015-06-30 19:47:57 +12:00
Severen Redwood
2614a0fa8c Fix typos in the documentation for the .help() method 2015-06-30 19:21:30 +12:00
Kevin K
4728dd67c5 chore: increase version 2015-06-29 22:29:01 -04:00
Kevin K.
853d62f553 Merge pull request #143 from kbknapp/issue-140
Issue #140 , #141 , and #85
2015-06-29 22:27:09 -04:00
Kevin K
ff149a29dd docs: adds "whats new" section to readme 2015-06-29 22:22:13 -04:00
Kevin K
a5b8b3584b test: fixes tests for 1.0 and deprecated functions 2015-06-29 22:21:47 -04:00
Kevin K
274484dfd0 imp: removes deprecated functions in prep for 1.0 2015-06-29 22:03:05 -04:00
Kevin K
d0da3bdd9d feat: allows waiting for user input on error
In order to pause for user input on error use `.wait_on_error(true)` but
it's important to note that this is *not* recursive through subcommands.

This is useful on Windows when a user mistakenly opens an application by
double clicking it, instead of using the command line or if using a GUI
shortcut to run a program.

Closes #140
2015-06-29 21:59:26 -04:00
Kevin K
26d5ae3e33 feat(Help): allows one to fully override the auto-generated help message
Allows overriding the entire help message so that nothing is
auto-generated

Closes #141
2015-06-29 21:58:45 -04:00
Kevin K.
bf5fa2b71a Merge pull request #142 from ivandmitrievsky/patch-1
chore(readme): fix minor typo
2015-06-29 19:50:50 -04:00
Ivan Dmitrievsky
279384b3e5 Fix minor typo in README 2015-06-29 21:41:29 +03:00
Kevin K
6e5896044a chore: increase version 2015-06-16 20:57:36 -04:00
Kevin K.
214e6f7737 Merge pull request #139 from kbknapp/issue-138
Issue 138
2015-06-16 20:51:47 -04:00
Kevin K
ebf442ebeb docs: updates docs to new version flag defaults 2015-06-16 20:46:11 -04:00
Kevin K
b2fab4652a tests: updates version switch to new default
Closes #138
2015-06-16 18:13:07 -04:00
Kevin K
eb1d9320c5 feat(Help and Version): allows overriding h/v short and changes default ver short to -V
The new default short for version is `-V` (capital). This is a "breaking"
change at least for documentation.

If the old lowercase `-v` is desired you can manually override with
`App::version_short("v")`

The help short can also be overridden now too.

BREAKING CHANGE
2015-06-16 16:54:20 -04:00
Kevin K
bac6fb5665 chore: increase version 2015-06-06 17:13:36 -04:00
Kevin K
ab4b46b5fd chore: increase version 2015-06-06 17:08:39 -04:00
Kevin K
1f377960a4 fix(Global Args): global arguments propogate fully now
Closes #137
2015-06-06 17:08:39 -04:00
Kevin K
245c218866 chore: increase version 2015-05-31 00:47:29 -04:00
Kevin K
a37842eec1 fix(Global Args): fixes a bug where globals only transfer to one subcommand
Closes #135
2015-05-31 00:45:07 -04:00
Kevin K
2b6b7ba693 chore: increase version 2015-05-30 13:15:33 -04:00
Kevin K
2191fe94bd imp(Binary Names): allows users to override the system determined bin name
Allows users to use `.bin_name("name")` to override the system
determined name with one of their choosing.

Closes #134
2015-05-30 13:09:21 -04:00
Kevin K
6f76bd0a07 docs: adds contributing guidelines 2015-05-29 13:13:17 -04:00
Kevin K
7dd2391046 chore: increase version 2015-05-25 21:53:49 -04:00
Kevin K
29ca7b2f74 feat: can now specify that an app or subcommand should display help on no args or subcommands
Closes #133
2015-05-25 21:49:27 -04:00
Kevin K
42560e5f03 chore: increase version 2015-05-22 23:40:20 -04:00
Kevin K.
ace4f1acf8 Merge pull request #132 from kbknapp/next
Next
2015-05-22 22:38:15 -05:00
Kevin K
743eefe8dd docs: updates for deprecations and new features 2015-05-22 23:32:56 -04:00
Kevin K
d6c3ed54d2 imp(Colors): implements more structured colored output
Closes #129
2015-05-22 23:01:20 -04:00
Kevin K
92fcec8fb7 chore: adds deprecations sections 2015-05-22 13:19:06 -04:00
Kevin K
c60e9183cc tests(Global Args): adds tests for global args 2015-05-22 13:18:02 -04:00
Kevin K
2bcc6137a8 feat(Global Args): allows args that propagate down to child commands
Closes #131
2015-05-22 13:18:02 -04:00
Kevin K
28b7385552 depr(SubCommand/App): several methods and functions for stable release
SubCommand::new() -> SubCommand::with_name()
App::error_on_no_subcommand() -> App::subcommand_required()
2015-05-22 13:16:07 -04:00
Kevin K
ad4dd9d86e chore(clap): increase version 2015-05-20 11:50:03 -04:00
Kevin K.
c75d3f4c2d Merge pull request #128 from kbknapp/patch-124
fix(help): allows parent requirements to be ignored with help and ver…
2015-05-20 10:48:57 -05:00
Kevin K
52218cc1fd fix(help): allows parent requirements to be ignored with help and version
Parent requirements are now ignored when the user requests help or
version switches

Closes #124
2015-05-20 11:17:30 -04:00
Kevin K
4708687711 chore(clap): increase version 2015-05-17 20:24:13 -04:00
Kevin K
08ba3f25cf fix(help): fixes a bug where requirements are included as program name in help and version 2015-05-17 20:22:40 -04:00
Kevin K
a3ceb7ac0f chore(clap): increase version 2015-05-17 18:26:03 -04:00
Kevin K.
90bb8d83df Merge pull request #127 from kbknapp/rollup
Rollup of various improvements and fixes
2015-05-17 18:23:57 -04:00
Kevin K
7554f238fd feat(subcommands): allows optionally specifying that no subcommand is an error
Closes #126
2015-05-17 18:21:55 -04:00
Kevin K
dd8f21c7c1 imp(usage): usage strings now include parent command requirements
Closes #125
2015-05-17 18:20:32 -04:00
Kevin K
4a4229f500 feat(subcommands): subcommands can optionally negate parent requirements
Closes #123
2015-05-17 14:29:57 -04:00
Kevin K
ab4ec609cc imp(args): allows consumer of clap to decide if empty values are allowed or not
Closes #122
2015-05-17 14:21:38 -04:00
Kevin K
936332f7c3 chore(clap): increase version 2015-05-17 09:55:23 -04:00
Kevin K
23da4d619c chore(.travis.yml): builds against stable and nightly 2015-05-17 09:46:48 -04:00
Kevin K
bc12e78ead fix(args): - can now be parsed as a value for an argument
Closes #121
2015-05-17 09:45:16 -04:00
Kevin K
8dd2150aae chore(clap): increase version 2015-05-15 16:48:08 -04:00
Kevin K
30fa87ba4e feat(macros): arg_enum! and simple_enum! provide a Vec<&str> of variant names
You can now use  ArgName::variants() to get a Vec<&'static str> of
vairant names (Nice for Arg::possible_values()). It's not as good as
implementing Iterator for the enum, but that can't be done without being
able to concat AST tokens in order to make an "EnumIter" type which
implements iterator and keeps track of when to yield None. But the
overall intent of this issue was to be able to iterate variant names,
which is now possible.

Closes #119
2015-05-15 16:42:00 -04:00