Commit graph

234 commits

Author SHA1 Message Date
Kevin K
18dbcf3702 fix(args): improve error messages for arguments with mutual exclusions
Closes #51
2015-04-02 22:34:36 -04:00
Kevin K.
68c8197574 Merge pull request #57 from kbknapp/patch-50
fix(positional args): all previous positional args become required when a latter one is required
2015-04-02 22:22:48 -04:00
Kevin K
c14c3f31fd fix(positional args): all previous positional args become required when
a latter one is required

Closes #50
2015-04-02 22:18:36 -04:00
Kevin K.
2abebcd0b6 Merge pull request #56 from kbknapp/tests
test(claptests): add more comprehensive tests
2015-04-02 19:20:13 -04:00
Kevin K
1a1ce2a7da test(claptests): add more comprehensive tests 2015-04-02 18:22:58 -04:00
Kevin K
bdb0e88f69 fix(tests): add missing .takes_value(true) to option2 2015-04-02 14:47:50 -04:00
Kevin K
e869100423 fix(help): fix formatting for option arguments with no long 2015-04-02 14:45:08 -04:00
Kevin K
1da0905b11 test(clap): add wider capability test coverage - wip 2015-04-02 14:17:45 -04:00
Kevin K
a0a2a40fed fix(flags): add assertion to catch flags with specific value sets
Closes #52
2015-04-01 20:16:45 -04:00
Kevin K
82ad6ad775 fix(option args): fix bug in getting the wrong number of occurrences for options 2015-04-01 20:14:49 -04:00
Kevin K
7cf9659f5b docs(README.md): add sections features and contributing 2015-04-01 13:22:53 -04:00
Kevin K
e095f6268d chore(clap): increase version 2015-04-01 13:22:53 -04:00
Kevin K
6ceb88a594 fix(args): fix bug in arguments who are required and mutually exclusive
When arguments are required-by-default and also mutually exclusive with
other arguments and the user chooses the mutually eclusive argument, the
requirements must be updated as well.
2015-04-01 13:22:53 -04:00
Kevin K
918f52ea35 chore(clap): increase version 2015-04-01 13:22:53 -04:00
Kevin K
28691b52f6 fix(help): fix formatting of help and usage 2015-04-01 13:22:53 -04:00
Kevin K
bddf50e810 chore(clap): increase version 2015-04-01 13:22:53 -04:00
Kevin K
6ec1011563 fix(help): fix formatting of help for flags and options
When options or flags have varying lengths of names and "long" version
the formatting gets corrupted because of the use of tabs. This commit
fixes those issues.
2015-04-01 13:22:53 -04:00
Kevin K
c0ef006861 chore(clap): increase version 2015-04-01 13:22:53 -04:00
Kevin K
297ddba770 feat(help): add '...' to indicate multiple values supported 2015-04-01 13:22:53 -04:00
Kevin K
fb3ccd7aaf docs(clap): rebuild documentation 2015-04-01 13:22:52 -04:00
Kevin K
cdc32eb469 chore(clap): increase version 2015-04-01 13:22:52 -04:00
Kevin K
b7fa72d40f feat(positionals): add assertions for positional args with multiple vals 2015-04-01 13:22:42 -04:00
Kevin K
8078400941 feat(positionals): add support for multiple values
Add support for #44 (multiple values for positional arguments) when the
positional argument is the last one (i.e. highest index)
2015-04-01 13:02:58 -04:00
Kevin K
f244ca6f9a chore(clap): increase version 2015-04-01 13:02:46 -04:00
Kevin K
da549dcb6c fix(apps): allow use of hyphens in application and subcommand names 2015-04-01 13:01:00 -04:00
Kevin K
c214f72fb1 chore(clap): increase version 2015-04-01 13:00:48 -04:00
Kevin K
d2ee5359c8 docs(README.md): update the readme 2015-04-01 13:00:33 -04:00
Kevin K
0a09eb365c fix(args): determine if the only arguments allowed are also required 2015-04-01 12:57:26 -04:00
Kevin K
62ec95aa1d docs(examples): add examples on default values and specific value sets 2015-04-01 12:57:26 -04:00
Kevin K
ee8e0f0046 docs(clap): rebuild documentation 2015-04-01 12:56:48 -04:00
Kevin K
70ecb0a0e5 chore(clap): increase version 2015-04-01 12:56:34 -04:00
Kevin K
270eb88925 feat(args): add support for a specific set of allowed values on options
or positional arguments
2015-04-01 12:56:34 -04:00
Kevin K
bcd1fa728e docs(clap): rebuild documentation 2015-04-01 12:50:48 -04:00
Kevin K
16a609183a chore(clap): increase version 2015-04-01 12:50:35 -04:00
Kevin K
1b7316d4a8 fix(usage): display required args in usage, even if only required by others 2015-04-01 12:50:35 -04:00
Kevin K
20f3e773e3 chore(CHANGELOG): update changelog 2015-04-01 12:47:56 -04:00
Kevin K
4ee023442a feat(subcommands): properly list subcommands in help and usage
SubCommands should be listed as parent-subcommand in help, but parent
subcommand in usage
2015-04-01 12:47:55 -04:00
Kevin K
ad43f3a5ea docs(clap): rebuild documentation 2015-04-01 12:46:38 -04:00
Kevin K
24ec2da5bf chore(clap): increase version 2015-04-01 12:46:25 -04:00
Kevin K
1cf73817d6 fix(tests): remove cargo test from claptests makefile 2015-04-01 12:45:47 -04:00
Kevin K
fb403da00a docs(README.md): update readme 2015-04-01 12:45:30 -04:00
Kevin K
28811d8324 docs(README.md): update help info 2015-04-01 12:43:34 -04:00
Kevin K
6bed75a136 docs(README.md): update the readme 2015-04-01 12:43:09 -04:00
Kevin K
726ef3f297 docs(clap): rebuild documentation 2015-04-01 12:42:08 -04:00
Kevin K
012ff7f8a9 chore(clap): increase version 2015-04-01 12:41:54 -04:00
Kevin K
9af52e93ce fix(option): fix bug with option occurrence values 2015-04-01 12:39:23 -04:00
Kevin K
d8f03a55c4 fix(tests): fix testing script bug and formatting 2015-04-01 12:38:50 -04:00
Kevin K
3834433c20 test(clap): add automated tests 2015-04-01 12:37:48 -04:00
Kevin K
9e8c1fb940 feat(arg): allow lifetimes other than 'static in arguments 2015-04-01 12:36:41 -04:00
Kevin K
76f015e5c8 Added initial version of test script 2015-03-26 14:21:55 -04:00