Commit graph

1460 commits

Author SHA1 Message Date
Kevin K
4057d34d93 docs(macros): add documentation covering value_t! and value_t_or_exit 2015-04-14 15:16:16 -04:00
Kevin K
0b87251fc0 feat(macros): add ability to get mutliple typed values or exit 2015-04-14 14:33:37 -04:00
Kevin K
e243fe38dd feat(macros): add ability to get a typed multiple values 2015-04-14 14:07:33 -04:00
Kevin K
4b7cd3ea49 feat(macros): add convenience macro to get a typed value or exit 2015-04-14 13:37:35 -04:00
Kevin K
8752700fbb feat(macros): add convenience macro to get a typed value 2015-04-14 12:14:17 -04:00
Kevin K
b67f2e537e docs(clap): fix failing doc tests 2015-04-13 22:26:41 -04:00
Kevin K
43955e8c48 chore(docs): rebuild documentation 2015-04-13 22:22:16 -04:00
Kevin K.
2b3d3fd901 chore(README.md): remove deprecated Arg::new() for Arg::with_name() 2015-04-13 22:21:44 -04:00
Kevin K
3c217b22b9 chore(docs): rebuild documentation 2015-04-13 22:19:29 -04:00
Kevin K
b389743672 docs(clap): improve examples and documentation as well as include new from_usage() features 2015-04-13 22:18:50 -04:00
Kevin K
72b315d792 chore(clap): increase version 2015-04-13 18:13:19 -04:00
Kevin K.
36160fc47f Merge pull request #71 from kbknapp/from-usage
trim whitespace before parsing on App::args_from_usage()
2015-04-13 17:12:30 -04:00
Kevin K
09497c916b docs(clap): improve readability of examples with App::args_from_usage() 2015-04-13 18:08:25 -04:00
Kevin K
91d2904599 fix(from_usage): trim all whitespace before parsing 2015-04-13 18:05:12 -04:00
Kevin K
b302b8bcd8 chore(clap): increase version 2015-04-13 15:39:24 -04:00
Kevin K
22163991da chore(docs): rebuild documentation with new from_usage features 2015-04-13 15:36:21 -04:00
Kevin K
0d3ecd8e83 docs(README.md): fix typos in the readme 2015-04-13 15:35:26 -04:00
Kevin K.
1bc802aa4b docs(README.md): fix typos in the readme 2015-04-13 14:29:40 -04:00
Kevin K.
1fcfc9cf27 docs(README.md): fix typos in the readme 2015-04-13 14:22:16 -04:00
Kevin K.
a4b0ce7426 docs(README.md): update readme examples with new from_usage() methods 2015-04-13 14:19:56 -04:00
Kevin K.
24dcc13b03 Merge pull request #70 from kbknapp/from-usage
Adds the ability to create args from a usage string
2015-04-13 14:07:11 -04:00
Kevin K
3710cd6916 fix(tests): fix failing doc tests 2015-04-13 15:03:22 -04:00
Kevin K
79e26a6b3e tests(clap-tests): add test support for new from_usage features 2015-04-13 14:59:34 -04:00
Kevin K
d5d48bcf46 feat(app): add support for building args from usage strings 2015-04-13 14:32:27 -04:00
Kevin K
ab409a8f1d feat(args): add ability to create basic arguments from a usage string 2015-04-13 13:31:14 -04:00
Kevin K
5fc6050ddf chore(docs): rebuild documentation with rustdoc nightly 2015-04-12 10:45:21 -04:00
Kevin K
3d960e8be0 docs(clap): clean up docs and add better explainations 2015-04-10 19:21:34 -04:00
Kevin K
2e3dc49a9a chore(clap): increase version 2015-04-10 12:00:58 -04:00
Kevin K
9f8fced0ab chore(docs): rebuild documentation 2015-04-10 11:55:20 -04:00
Kevin K.
76de2f553a Merge pull request #68 from kbknapp/usage
Improves ergonomics and performance of usage generation
2015-04-10 10:55:20 -04:00
Kevin K
dcbadc6275 perf(usage): remove compiler warnings and dedup some code 2015-04-10 11:50:08 -04:00
Kevin K
3636afc401 feat(usage): add ability to get usage string for subcommands too
You can now get the usage even for sub-commands by calling the
usage() method.

Breaking Change
ArgMatches::usage() now returns a slice (no longer an Option<&str>)
This is to improve ergonomics, as there should always be at least a
default usage statement, there should never be None
2015-04-10 10:49:12 -04:00
Kevin K
5137278942 fix(usage): remove unneeded space 2015-04-09 21:43:26 -04:00
Kevin K
ba817b9d81 fix(usage): remove warning about unused variables 2015-04-09 19:53:13 -04:00
Kevin K
be91c5f2f5 chore(clap): increase version 2015-04-09 18:49:59 -04:00
Kevin K
73ca72261e chore(docs): rebuild documentation with new features 2015-04-09 18:46:10 -04:00
Kevin K.
53af3fe86b Merge pull request #67 from kbknapp/scmatches-and-name
Scmatches and name
2015-04-09 18:45:06 -04:00
Kevin K
e2488e50e4 tests(subcommand help): change to new usage generation known good 2015-04-09 18:39:29 -04:00
Kevin K
02462150ca feat(ArgMatches): add method to get default usage string 2015-04-09 18:18:51 -04:00
Kevin K
64e539280e feat(SubCommands): add method to get name and subcommand matches together 2015-04-09 17:07:28 -04:00
Kevin K.
fef861661e docs(README.md): update examples with some comments, and fix typos 2015-04-09 14:25:03 -04:00
Kevin K.
2e0a675ba2 Merge pull request #66 from kbknapp/tests
tests(clap-tests): add subcommand tests
2015-04-08 17:04:27 -04:00
Kevin K
08f130612a tests(clap-tests): add subcommand tests 2015-04-08 18:01:06 -04:00
Kevin K
52415f4ba3 chore(tests): rename claptests->clap-tests 2015-04-08 17:10:59 -04:00
Kevin K
315ffbdcbc docs(README.md): fix typos and add license section 2015-04-08 17:10:00 -04:00
Kevin K.
ddc9b6955c docs(README.md): add gitter chat badge 2015-04-08 12:04:07 -04:00
Kevin K.
c69366fff3 Merge pull request #64 from kbknapp/dev
docs(README.md): add portions concerning conventional changelogs
2015-04-07 22:38:57 -04:00
Kevin K
2bf9569506 docs(README.md): add portions concerning conventional changelogs 2015-04-07 22:38:06 -04:00
Kevin K
8e317be161 docs(changelog.md): switch to conventional changelog using clog 2015-04-07 22:27:50 -04:00
Kevin K
9424601d83 docs(README.md): add video tutorial section 2015-04-07 21:06:45 -04:00