Commit graph

956 commits

Author SHA1 Message Date
Kevin K
ace1239f40 chore: updates README.md with new features 2015-10-06 11:16:14 -04:00
Homu
2cc65cd906 Auto merge of #312 - kbknapp:issue-277-refactor, r=sru
refactor(Errors): refactors how errors are created for deduplication

This should **finally** fix all the cases for @elszben since there's now only a single way to determine what goes in the usage string...not 20 😄

Closes #277
2015-10-06 13:48:32 +09:00
Kevin K
6b90f1adad refactor(Errors): refactors how errors are created for deduplication
Closes #277
2015-10-05 21:47:39 -07:00
Homu
8309232e6b Auto merge of #311 - kbknapp:issue-307, r=sru
Issue 307
2015-10-06 12:28:21 +09:00
Kevin K
13f6101a87 tests(Unified Help): uses new sorted category in tests
Closes #307
2015-10-05 20:37:49 -04:00
Kevin K
2a223dad82 fix(Unified Help): sorts both flags and options as a unified category 2015-10-05 20:36:30 -04:00
Kevin K
b76a8b548d Merge branch 'master' of github.com:kbknapp/clap-rs 2015-10-05 08:28:38 -04:00
Homu
32d37f1b80 Auto merge of #306 - birkenfeld:master, r=Vinatorul
fix: grammar error in some conflicting option errors
2015-10-04 17:47:22 +09:00
Georg Brandl
e73b07e194 fix: grammar error in some conflicting option errors 2015-10-04 10:43:59 +02:00
Homu
0fbd4575a3 Auto merge of #305 - kbknapp:issue-277-take2, r=sru
Issue 277 take2
2015-10-04 03:38:54 +09:00
Kevin K
72b453dc17 fix(Usage): fixes a bug where required args aren't filtered properly
Closes #277
2015-10-03 09:22:15 -04:00
Kevin K
0e3733e4fe feat: supports -aValue style options 2015-10-02 16:46:37 -04:00
Homu
d03e3e0d54 Auto merge of #304 - kbknapp:rustdoc-fix, r=kbknapp
Rustdoc fix
2015-10-02 15:18:46 +09:00
SungRim Huh
b7df92d7ea docs: clean up some formatting 2015-10-01 21:46:45 -04:00
Kevin K
8dc03a4aca Merge branch 'master' of github.com:kbknapp/clap-rs 2015-10-01 20:30:56 -04:00
SungRim Huh
d7233bf122 docs: move the crate-level docs to top of the lib.rs file 2015-10-01 16:48:25 -07:00
Kevin K
3183279acd Merge branch 'master' into rustdoc 2015-10-01 17:30:47 -04:00
Kevin K
34b601be5f docs: changes doc comments to rustdoc comments 2015-10-01 17:27:29 -04:00
Homu
ec8070d9db Auto merge of #301 - kbknapp:issue-278, r=Vinatorul
Issue 278
2015-10-02 03:40:23 +09:00
Kevin K
0005154bcb Merge branch 'master' into issue-278 2015-10-01 14:28:09 -04:00
Kevin K
27018b1821 feat(Trailing VarArg): adds opt-in setting for final arg being vararg
Closes #278
2015-10-01 14:18:17 -04:00
Kevin K
05414a4b6d style: removes trailing whitespace 2015-10-01 14:16:02 -04:00
Homu
7b50f76c57 Auto merge of #299 - kbknapp:issue-298, r=Vinatorul
fix(Usage Strings): fixes a bug ordering of elements in usage strings

Closes #298
2015-10-02 02:27:49 +09:00
Alexander Kuvaev
914b3326dd Merge branch 'master' into issue-298 2015-10-01 20:11:24 +03:00
Alexander Kuvaev
cde710f3ea Merge pull request #300 from kbknapp/depupdate
chore: updates yaml-rust dep
2015-10-01 20:11:14 +03:00
Alexander Kuvaev
408253d4ab Merge branch 'master' into depupdate 2015-10-01 19:53:29 +03:00
Kevin K
0f411c1c3e Merge branch 'master' into issue-298
skip-ci
2015-10-01 12:49:27 -04:00
Kevin K
b85786f7be chore: updates yaml-rust dep 2015-10-01 12:40:39 -04:00
Homu
c401d489fb Auto merge of #297 - kbknapp:rustdoc, r=Vinatorul
Rustdoc
2015-10-02 01:37:37 +09:00
Kevin K
aaf0d6fe7a fix(Usage Strings): fixes a bug ordering of elements in usage strings
Closes #298
2015-10-01 12:33:37 -04:00
Kevin K
86f9e612b3 Merge branch 'master' into rustdoc 2015-10-01 12:04:08 -04:00
Kevin K
6f9ee181e6 docs(Rustdoc): adds portions of the readme to main rustdoc page
Closes #293
2015-10-01 12:03:14 -04:00
Homu
dcfe9652ee Auto merge of #296 - kbknapp:issue-295, r=kbknapp
docs: fixes panic in 14_groups example

Closes #295
2015-10-01 23:37:12 +09:00
Kevin K
945b00a0c2 docs: fixes panic in 14_groups example
Closes #295
2015-10-01 10:20:04 -04:00
Homu
edec5ae387 Auto merge of #294 - huonw:no-star, r=Vinatorul
Avoid suggesting star dependencies.

A `*` version constraint makes it hard/impossible to release a breaking
change (e.g. clap 2.0) without causing people's code to break.  `cargo
update` with a `*` dependency will happily move from (say) 1.4 to 2.0,
even though semver says these may be a breaking change. Using a more
precise dependency constraint gives the crate author more flexibility in
making breaking changes, and makes users of the crate happier if/when
they do happen.

https://github.com/rust-lang/rfcs/pull/1241 contains a bit more
discussion about this.
2015-10-01 22:00:25 +09:00
Huon Wilson
45b101b247 chore: I'm a contributor! 2015-10-01 22:58:27 +10:00
Huon Wilson
d33228f40b docs: avoid suggesting star dependencies.
A `*` version constraint makes it hard/impossible to release a breaking
change (e.g. clap 2.0) without causing people's code to break.  `cargo
update` with a `*` dependency will happily move from (say) 1.4 to 2.0,
even though semver says these may be a breaking change. Using a more
precise dependency constraint gives the crate author more flexibility in
making breaking changes, and makes users of the crate happier if/when
they do happen.

https://github.com/rust-lang/rfcs/pull/1241 contains a bit more
discussion about this.
2015-10-01 22:40:28 +10:00
Kevin K
7d0ab22f7f Merge branch 'master' of github.com:kbknapp/clap-rs 2015-10-01 00:25:34 -04:00
Homu
32c9482a97 Auto merge of #292 - kbknapp:refactor, r=sru
Refactor

* Removes trailing whitespace
* Moves all the `bool` fields of `App` into a bitflags field, which also makes it way easier to add new settings and de-bloats the `App` struct a little
* Does the same for the `*Builder` structs
* Notably does **not** use bitfileds for the `Arg` struct...but mainly because it appears some people are using those fields directly...TBD if we'll change that or not.
2015-10-01 13:16:11 +09:00
Kevin K
958ebb8629 refactor: removes legacy panics and fixes grammar 2015-10-01 00:05:41 -04:00
Kevin K
1ac7e99491 tests(AppSettings): adds some additional tests 2015-09-30 23:59:41 -04:00
Kevin K
38ff779749 tests(Hidden Args): adds tests 2015-09-30 23:59:41 -04:00
Kevin K
a9aae2ade4 refactor: fixes a typo in the arg settings 2015-09-30 23:59:40 -04:00
Kevin K
f1031dac13 refactor: fixes a typo in the app settings 2015-09-30 23:59:40 -04:00
Kevin K
7ade4ff6f5 chore: updates dep graph 2015-09-30 23:59:40 -04:00
Kevin K
b01667ebb3 refactor: changes some arg fields to flags internally 2015-09-30 23:59:40 -04:00
Kevin K
7005cf8c47 style: removes trailing whitespace 2015-09-30 23:59:40 -04:00
Kevin K
b733bfbb6a refactor: adds the hidden setting to AppSettings 2015-09-30 23:59:40 -04:00
Kevin K
ffae52e64b refactor: refactor app settings into flags 2015-09-30 23:59:40 -04:00
Kevin K
6f2926e794 refactor(ArgBuilders): moves creation of builders to constructors 2015-09-30 23:59:40 -04:00