Kevin K
c1c993c419
im(Options): adds number of values to options in help/usage
2015-05-04 22:01:28 -04:00
Kevin K
45e481cb1c
tests(main.rs): adds new features to tests
2015-05-04 22:01:28 -04:00
Kevin K
dd2a75640c
fix(MultipleValues): properly distinguishes between multiple values and multiple occurrences
...
When using number_of_values() or value_names() you no longer have to set
.multiple(true) unless you want the argument to be allowed multiple
times (i.e. *not* the value, but the argument itself). This means
without multiple(true) set (and assuming 2 values) -o val1 val2 is only
allowed one time, but with multiple(true) set, -o val1 val2 -o val3 val4
is allowed.
Closes #99
2015-05-04 21:59:10 -04:00
Kevin K
4a23f1b484
chore(clap): increase version
2015-05-03 20:36:22 -04:00
Kevin K
a1fb94be53
fix(Options): fixes bug where options with no value don't error out
2015-05-03 20:31:56 -04:00
Kevin K
37a925d2b9
chore(clap): increase version
2015-05-03 17:11:05 -04:00
Kevin K
f66334d0ce
fix(Options): fixes a bug where option arguments in succession get their values skipped
2015-05-03 17:02:10 -04:00
Kevin K
0b165e28ca
chore(clap): increase version
2015-05-03 16:29:17 -04:00
Kevin K
51087b693b
style(app.rs): changes to follow Rust style guide
2015-05-03 16:24:44 -04:00
Kevin K
7ab5037402
tests(run_tests.py): update error messages
2015-05-03 16:20:12 -04:00
Kevin K
c236dc5ff4
im(ArgGroups): improves requirment and confliction support for groups
2015-05-03 16:15:54 -04:00
Kevin K
a29c3983c4
im(ErrorMessages): improves error messages and corrections
2015-05-03 15:49:18 -04:00
Kevin K
93c4a7231b
fix(RequiredValues): fixes a bug where missing values are parsed as missing arguments
2015-05-03 15:39:49 -04:00
Kevin K
80352bfdb4
chore(.clog.toml): utilizes new sections feature of clog
2015-05-03 15:38:47 -04:00
Kevin K
4a11b30066
chore(clap): increase version
2015-05-03 00:41:53 -04:00
Kevin K.
88d976c6f1
Merge pull request #97 from kbknapp/patch-96
...
Bug fixes, performance changes, and some clean up
Fixes #96
2015-05-03 00:40:11 -04:00
Kevin K
713cab8a4f
tests(run_tests.py): update known good error messages to new messages
2015-05-03 00:38:18 -04:00
Kevin K
4de05f65fb
perf(usage): improves usage string generation
2015-05-03 00:38:18 -04:00
Kevin K
12aea9612d
fix(RequiredArgs): fixes bug where required-by-default arguments are not listed in usage
...
Closes #96
2015-05-03 00:38:06 -04:00
Kevin K
82b0c5c3d7
docs(macros.rs): fixes doc tests
2015-05-01 14:50:28 -04:00
Kevin K
22aef2ab45
style(clap): rustfmt run
2015-05-01 14:44:20 -04:00
Kevin K
08635e6b5e
style(clap): makes changes to follow Rust style guide
2015-05-01 14:43:26 -04:00
Kevin K.
6874d4cabb
Merge pull request #94 from kbknapp/rustfmt
...
Formats all source using rustfmt
2015-05-01 13:54:03 -04:00
Kevin K
72c1110f07
chore(.gitignore): adds backup files
2015-05-01 13:36:46 -04:00
Kevin K.
aa1a1f8813
Merge pull request #93 from Byron/master
...
chore(cargo): fix documentation URL
2015-05-01 11:42:19 -04:00
Sebastian Thiel
2126525ccc
chore(cargo): fix documentation URL
2015-05-01 17:13:41 +02:00
Kevin K
1f1fc04e1e
docs(arg.rs): improves docs and fix typos
2015-05-01 10:19:19 -04:00
Kevin K
9fa6ea7cc6
chore(clap): increase version
2015-04-30 22:21:23 -04:00
Kevin K
86d92c9fdb
fix(MultipleValues): stops evaluating values if the max or exact number of values was reached
2015-04-30 22:17:10 -04:00
Kevin K
82d03638d3
docs(lib.rs): fix doc tests
2015-04-30 20:43:22 -04:00
Kevin K
ace479a11c
docs(README.md): update links
2015-04-30 20:13:59 -04:00
Kevin K
0d123a0d86
docs(clap): update docs
2015-04-30 20:13:01 -04:00
Kevin K
abc31077b0
chore(clap): increase version
2015-04-30 19:59:45 -04:00
Kevin K
e75f304222
docs(README.md): adds breaking changes, deprecations, and new features
2015-04-30 19:58:34 -04:00
Kevin K.
9addfbb928
Merge pull request #91 from kbknapp/patch-88
...
Adds support for #88
Closes #89
Closes #88
Closes #82
2015-04-30 19:41:12 -04:00
Kevin K
cf7f6c80cd
tests(usage): update known good tests to new usage strings
2015-04-30 19:32:51 -04:00
Kevin K
53f6b8c9d8
feat(MultipleValues): add support for minimum and maximum number of values
2015-04-30 19:32:51 -04:00
Kevin K
ae09f05e92
feat(MultipleValues): adds support limited number and named values
2015-04-30 18:02:19 -04:00
Kevin K
42d9b142b7
tests(run_tests.py): update tests to allow new shorthand multi values
2015-04-30 15:28:01 -04:00
Kevin K
6669f0a968
feat(MultipleValues): implement shorthand for options with multiple values
2015-04-30 15:11:12 -04:00
Kevin K.
d2fbe5a461
Merge pull request #90 from kbknapp/smart-usage
...
Implements smart usage strings on error
2015-04-30 11:15:29 -04:00
Kevin K
dd693ab86d
tests(usage): update to smart usage errors
2015-04-30 12:13:03 -04:00
Kevin K
d77048efb1
feat(usage): implement smart usage strings on errors
...
Closes #88
2015-04-30 12:12:44 -04:00
Kevin K
0cc2f69839
feat(arg): allow other types besides Vec for multiple value settings
...
Breaking Change
Instead of requiring a Vec<&str> for various Arg::*_all() and
Arg::possible_values() methods this
commit now requires a generic IntoIterator<Item=AsRef<str>> which allows
things such as constant arrays. This change requires that any
Arg::*_all() methods be changed from vec!["val", "val"] -> let vals =
["val", "val"]; some_arg.possible_values(&vals) (or vals.iter()).
Closes #87
2015-04-29 17:52:13 -04:00
Kevin K
9e6af520a3
chore(clap): increase version
2015-04-28 23:49:59 -04:00
Kevin K
1c92ed0e72
chore(docs): change makefile -> travis auto cargo doc and upload
2015-04-28 23:18:08 -04:00
Kevin K
79f7ecceaa
chore(Travis-CI): update travis script to build and publish docs on successful beta build
2015-04-28 22:43:20 -04:00
Kevin K
ad4e545107
fix(from_usage): removes bug where usage strings have no help text
...
Creating arguments from usage strings with no help text previously
dropped the final character i.e. --flags -> --flag
This commit fixes that issue by testing if we are at the end of the
string
Closes #83
2015-04-28 22:11:20 -04:00
Kevin K.
06304bf9f5
docs(README.md): fix typos
2015-04-27 23:25:39 -04:00
Kevin K
550a2f3a05
chore(docs): rebuild docs with nightly
2015-04-27 23:20:11 -04:00