Commit graph

556 commits

Author SHA1 Message Date
Kevin K
f2dd2cb1c6 chore: increase version 2015-07-16 21:42:15 -04:00
Kevin K.
65ba33d895 Merge pull request #162 from kbknapp/issue-161
fix: fixes a logic bug and allows setting Arg::number_of_values() < 2
2015-07-16 21:38:42 -04:00
Kevin K
42b6d1fc3c fix: fixes a logic bug and allows setting Arg::number_of_values() < 2
Allows setting `Arg::number_of_values(qty)` where `qty` < 2. This allows
things such as `Arg::number_of_values(1)` in conjuction with
`Arg::multiple(true)` which would make invoking the program like this
`myprog --opt val --opt val` legal, but `myprog --opt val1 val2`
illegal.

Closes #161
2015-07-16 21:34:04 -04:00
Kevin K
5b4170b4b7 chore: increase version 2015-07-16 01:46:24 -04:00
Kevin K.
023981cf05 Merge pull request #160 from kbknapp/feature-rollup
perf: improves help message printing drastically
2015-07-16 01:43:41 -04:00
Kevin K
8232f7bb52 docs: updates readme with new features 2015-07-16 01:39:57 -04:00
Kevin K
f9800a2969 imp(Help Strings): properly aligns and handles newlines in long help strings
Long help strings can now be broken up with newlines that will be
properly aligned in help messages. Simply place a `{n}` wherever you'd
like the newline to appear.

Closes #145
2015-07-16 01:27:58 -04:00
Kevin K
3b202917d1 test: changes test help messages to new improvements 2015-07-16 01:27:58 -04:00
Kevin K
52bcd892ea feat: allows creating unified help messages, a la docopt or getopts
Allows creating help messages with a more unified look, similar to how
docopt and getopts are formatted. (i.e. flags and options are combined
into a single group)

Closes #158
2015-07-16 01:27:05 -04:00
Kevin K
336c476f63 feat: allows stating all subcommands should *not* have --version flags
Allows subcommands to disable the `--version` flag by using the
`App::versionless_subcommands(true)` method.

Closes #156
2015-07-16 01:26:11 -04:00
Kevin K
bc66d3c6de feat: allows setting version number to auto-propagate through subcommands
The version number can now be auto-propgated down through subcommands
with the App::global_version(true) method

Closes #157
2015-07-16 01:25:14 -04:00
Severen Redwood
8889689dc6 docs: fix incorrect code example for App::subcommand_required 2015-07-15 21:54:07 -04:00
Kevin K
62275b7cf6 chore: increase version 2015-07-11 11:30:33 -04:00
Kevin K.
3fa80400f2 Merge pull request #155 from kbknapp/issue-154
imp: writes errors to stderr
2015-07-11 11:28:05 -04:00
Kevin K
cc76ab8c2b imp(Errors): writes errors to stderr
Closes #154
2015-07-11 11:23:48 -04:00
Kevin K
0aca29bd5d docs(README.md): updates example help message to new format 2015-07-09 11:46:12 -04:00
Kevin K
5419fd8ed1 chore: increase version 2015-07-09 10:28:03 -04:00
Kevin K.
5cd9620c42 Merge pull request #153 from kbknapp/issue-147
imp(Usage): re-orders optional arguments and required to natural stan…
2015-07-09 10:27:15 -04:00
Kevin K
dc7e1fcea5 imp(Usage): re-orders optional arguments and required to natural standard
Also renamed is '[POSITIONAL]' => '[ARGS]' to use the more standard
vernacular

Closes #147
2015-07-09 09:51:57 -04:00
Kevin K
83ac35d783 chore: increase version 2015-07-08 15:03:23 -04:00
Kevin K.
de7e5f144f Merge pull request #152 from kbknapp/issue-151
fix: allows empty values when using --long='' syntax
2015-07-08 15:02:33 -04:00
Kevin K
083f82d333 fix: allows empty values when using --long='' syntax
Closes #151
2015-07-08 14:57:28 -04:00
Kevin K
b20a93aa1e chore: increase version 2015-07-07 20:20:45 -04:00
Kevin K.
6bb0576a72 Merge pull request #150 from kbknapp/issue-149
Issue 149
2015-07-07 20:14:38 -04:00
Kevin K
938f7f0134 docs(README.md): adds new features to what's new list 2015-07-07 20:14:23 -04:00
Kevin K
1528038fbb chore: silence macro definition warnings 2015-07-07 20:06:15 -04:00
Kevin K
753125282b feat: args can now be parsed from arbitrary locations, not just std::env::args() 2015-07-07 19:55:41 -04:00
Kevin K.
884bee3654 Merge pull request #148 from Keats/master
docs(readme): use with_name for subcommands
2015-07-06 23:33:26 -04:00
Vincent Prouillet
28b7e3161f docs(readme): use with_name for subcommands
::new doesn't exist anymore
2015-07-07 04:27:53 +01:00
Kevin K.
d55c021528 Merge pull request #144 from SShrike/patch-1
docs: fixes typos
2015-06-30 05:51:24 -04:00
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