Commit graph

1189 commits

Author SHA1 Message Date
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
Kevin K
b56d77768a chore(docs): rebuild documentation 2015-04-05 20:27:02 -04:00
Kevin K
2041cc4fda chore(clap): increase version 2015-04-05 20:26:12 -04:00
Kevin K
042577d254 refactor(app.rs): remove unneeded hashmap use statement 2015-04-05 20:25:03 -04:00
Kevin K.
95b5cca1bf Merge pull request #63 from kbknapp/patch-62
feat(help): sort arguments by name so as to not display a random order
2015-04-05 20:23:24 -04:00
Kevin K
f4b2bf5767 feat(help): sort arguments by name so as to not display a random order 2015-04-05 20:20:46 -04:00
Kevin K
4572c79218 chore(clap): increase version 2015-04-04 16:19:34 -04:00
Kevin K.
046546b3e3 Merge pull request #61 from kbknapp/cleanup
Cleanup and fix
2015-04-04 16:17:12 -04:00
Kevin K
90e72cffde fix(flags): fix bug not allowing users to specify -v or -h 2015-04-04 16:13:51 -04:00
Kevin K
572bc31f08 style(app.rs): clean up misc items 2015-04-04 09:25:49 -04:00
Kevin K
b1cf77190e chore(clap): increase version 2015-04-03 11:52:18 -04:00
Kevin K.
9769dd682f Merge pull request #60 from kbknapp/dev
fix(help): fix spacing when option argument has not long version
2015-04-03 11:50:57 -04:00
Kevin K
ca17fa494b fix(help): fix spacing when option argument has not long version 2015-04-03 11:50:09 -04:00
Kevin K
f39004a26d chore(docs): rebuild documentation 2015-04-03 11:09:16 -04:00
Kevin K
6dc80fde3f chore(clap): increase version 2015-04-03 11:08:22 -04:00
Kevin K.
706e1c71d6 Merge pull request #59 from kbknapp/dev
Merge of dev
2015-04-03 11:05:46 -04:00
Kevin K
9abdb438e3 fix(clap): remove unstable features for Rust 1.0 2015-04-03 11:02:46 -04:00
Kevin K
60e4072896 Merge branch 'master' into dev 2015-04-02 23:00:01 -04:00
Kevin K
30750239eb docs(clap): rebuild documentation 2015-04-02 22:54:58 -04:00
Kevin K
66756bbc8a chore(clap): increased version 2015-04-02 22:54:58 -04:00
Kevin K
56426af2c4 test(claptests): fix test known goods to new error messages 2015-04-02 22:54:58 -04:00
Kevin K
bff945fc5d fix(args): improve error messages for arguments with mutual exclusions
Closes #51
2015-04-02 22:54:58 -04:00