Kevin K
fb7057cc7a
refactor(Arg): removes duplicate and uses Base, Switched, and Valued internally now
2017-02-20 19:06:36 -05:00
Kevin K
988b9cbea4
style: standardizes debug calls and output
...
Closes #792
2016-12-29 23:34:46 -05:00
Kevin K
d3d34a2b51
fix: fixes a bug where calling the help of a subcommand wasn't ignoring required args of parent commands
...
Closes #789
2016-12-28 04:25:58 -05:00
Kevin K
80cc68748d
chore: rustfmt run
2016-11-20 14:47:04 -05:00
Kevin K
7cb44abc09
Revert "Auto merge of #737 - kbknapp:questionmark, r=kbknapp"
...
This reverts commit f24a3760e4
, reversing
changes made to 087cee7404
.
2016-11-12 12:12:05 -05:00
Kevin K
55e7385685
style: changes try! to ? and rustfmt run
2016-11-11 15:20:07 -05:00
tormol
fd4c0870be
refactor(UsageParser tests) Use VecMap's .values() instead of .iter().map(|(_,&v)| v)
...
In many cases this makes the assert fit on one line, but the double references are a bit awkward.
2016-09-30 17:29:31 +02:00
tormol
42a6d232d4
refactor(UsageParser::parse) merge two ifs
2016-09-30 17:29:31 +02:00
tormol
bb1fa0d694
refactor(UsageParser) Make the functions passed to .stop_at() straightforward
2016-09-30 17:29:31 +02:00
tormol
1d6a7c6e7e
fix(UsageParser): Handle non-ascii names / options.
...
This should also speeds up the parser (except maybe for short options).
Multi-codepoint characters still can't be used as short options, but people shouldn't non-ASCII options nyway.
Closes #664
2016-09-30 17:29:23 +02:00
Kevin K
0dcfc77dae
tests(Debugging): standardizes certain debugging calls
2016-09-12 21:48:22 -04:00
Kevin K
f9e692548e
imp(Value Delimiters): changes the default value delimiter rules
...
Prior to this change, values were always delimited by default. This was causing issues with code
where the arg had a single value, and contained valid commas and shouldn't be delimited. This
commit changes the rules slightly so that values are not delimited by default, *unless* one of the
methods which implies multiple values was used (max_values, value_names, etc.).
This means single value args should *not* be delimited by default. If one wishes to use the old
way, they can add `Arg::use_delimiter(true)` to such code.
Closes #655
2016-09-10 18:19:33 -04:00
Kevin K
b246be1a4b
style: rustfmt run
2016-09-05 17:03:45 -04:00
Kevin K
07e6e8ea31
style: rustfmt run
2016-09-05 15:29:40 -04:00
Kevin K
ffde90f2ba
style: rustfmt run
2016-05-06 17:52:23 -04:00
Kevin K
22000a08f7
chore: changes some assertions to debug assertions
2016-03-10 16:33:39 -05:00
Kevin K
deace34ad2
chore: clippy run
2016-03-08 10:39:43 -05:00
Kevin K
c19a791745
imp(values): adds support for up to u64::max values per arg
2016-02-02 07:45:49 -05:00
Kevin K
0bcc712064
fix(Usage Parser): fixes a bug where literal single quotes weren't allowed in help strings
...
Closes #406
2016-01-31 07:12:07 -05:00
Kevin K
f1876388a7
docs: updating docs for 2x release
2016-01-28 11:45:31 -05:00
Kevin K
eb4de9215f
imp(From Usage): vastly improves the usage parser
...
Closes #350
2016-01-28 11:45:31 -05:00