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
Kevin K
7224ce0f61
chore: increase version
2015-09-30 23:06:17 -04:00
Homu
b735f44ba0
Auto merge of #291 - kbknapp:v1.4.3, r=Vinatorul
...
chore: increase version
2015-10-01 03:46:09 +09:00
Kevin K
76cad54fa4
chore: increase version
2015-09-30 14:42:41 -04:00
Homu
01daf939b0
Auto merge of #289 - kbknapp:issue-277, r=Vinatorul
...
fix(Help Message): required args no longer double list in usage
Closes #277
2015-10-01 02:57:16 +09:00
Alexander Kuvaev
ed0d30c66d
Merge branch 'master' into issue-277
2015-09-30 20:57:03 +03:00
Homu
42ab5ef1b8
Auto merge of #290 - kbknapp:new-contribs, r=Vinatorul
...
New contribs
2015-10-01 02:47:12 +09:00
Kevin K
7aabaa19f7
chore: fixes broken clog link
2015-09-30 13:04:51 -04:00
Kevin K
9a81d8f2c2
chore: adds new contributors
2015-09-30 13:04:34 -04:00
Kevin K
1412e639e0
fix(Help Message): required args no longer double list in usage
...
Closes #277
2015-09-30 12:54:00 -04:00
Homu
5d7ce3e87b
Auto merge of #288 - kbknapp:issue-287, r=sru
...
fix(Possible Values): possible value validation is restored
Closes #287
2015-09-30 23:55:49 +09:00
Kevin K
f121ae749f
fix(Possible Values): possible value validation is restored
...
Closes #287
2015-09-30 10:23:26 -04:00
Homu
1c5f4f20f4
Auto merge of #286 - grossws:patch-1, r=kbknapp
...
docs: use links to examples instead of plain text
Replaced plain text `example/` and `example/xx_some_example.rs` by links to examples dir and appropriate examples.
2015-09-30 07:02:00 +09:00
grossws
bb4fe23785
docs: use links to examples instead of plain text
...
Replaced plain text `example/` and `example/xx_some_example.rs` by links to examples dir and appropriate examples.
2015-09-29 23:25:15 +03:00
Homu
93521171d1
Auto merge of #283 - kbknapp:issue-279, r=kbknapp
...
Issue 279
Allows accessing values by group name, and checking presence of any arg in a group in matches.
2015-09-29 06:50:03 +09:00
Alexander Kuvaev
e102c1be3f
tests: minor test improvements
2015-09-28 23:28:46 +03:00
Kevin K
af8bfb1610
tests(ArgGroups): adds tests for ArgGroups
...
closes #279
2015-09-28 12:29:57 -04:00
Kevin K
c92a4b9eff
feat: allows accessing arg values by group name
2015-09-28 12:22:09 -04:00
Homu
5943ec026a
Auto merge of #276 - Vinatorul:dev, r=@james-darkfox
...
chore: update .travis.yml to upload docs with YAML features
2015-09-24 02:48:42 +09:00
Alexander Kuvaev
4737a0809f
chore: update .travis.yml to upload docs with YAML features
2015-09-23 20:27:50 +03:00
Homu
58c2c741d2
Auto merge of #273 - kbknapp:inc-ver, r=sru
...
chore: increase version
2015-09-23 11:18:18 +09:00
Kevin K
203dfcadc1
chore: increase version
2015-09-22 22:05:47 -04:00
Homu
9af30f0b15
Auto merge of #272 - kbknapp:issue-271, r=kbknapp
...
fix(Conflicts): fixes bug with conflicts not removing required args
Closes #271
2015-09-23 10:15:41 +09:00
Kevin K
e17fcec53b
fix(Conflicts): fixes bug with conflicts not removing required args
...
Closes #271
2015-09-22 15:38:04 -04:00
Homu
b096c4b51f
Auto merge of #268 - kbknapp:inc-ver, r=Vinatorul
...
chore: increase version
2015-09-23 03:04:02 +09:00
Kevin K
f21ecf8535
chore: increase version
2015-09-22 13:28:32 -04:00
Homu
313d46abeb
Auto merge of #265 - kbknapp:issue-262, r=james-darkfox
...
Issue 262 - Result and Lossy options for invalid Unicode
This allows not `panic!`ing on invalid unicode characters, and the option of returning lossy results. This does **not** turn all results into an `OsStr` preserving invalid unicode.
If this helps with #262 we can merge (after review), otherwise we'll continue to discuss if there's a better way to handle this issue.
2015-09-22 14:02:52 +09:00
Kevin K
87ba54451d
docs: properly names Examples section for rustdoc
2015-09-21 22:06:15 -04:00
Kevin K
8b1b261616
tests(Unicode): adds safe unicode tests
2015-09-21 21:58:41 -04:00
Kevin K
c5bf7ddc8c
feat(Unicode): allows non-panicing on invalid unicode characters
2015-09-21 21:58:25 -04:00
Homu
3d0199da88
Auto merge of #263 - Vinatorul:dev, r=kbknapp
...
fix(ArgGroup) added asserts to help users to configure clap properly
Also I've added tests for this change
Now you will get
```
ArgGroup %Your_ArgGroup_Name% doesn't contain any args
```
instead of
```
thread '<main>' panicked at 'arithmetic operation overflowed'
```
And
```
ArgGroup %Your_ArgGroup_Name% can not have same name as arg inside it
```
instead of
```
thread '<main>' has overflowed its stack
```
2015-09-22 07:56:09 +09:00
Alexander Kuvaev
4ed03cde73
Merge branch 'master' into dev
2015-09-21 23:11:40 +03:00
Homu
b8e47f151b
Auto merge of #264 - Vinatorul:chore, r=Vinatorul
...
chore: add new contributors to list
2015-09-22 05:01:20 +09:00
Alexander Kuvaev
760615e01f
chore: add new contributors to list
2015-09-21 22:49:31 +03:00
Alexander Kuvaev
a87c5cd660
fix(ArgGroup) added asserts to help users to configure clap properly
...
Also I've added tests for this change
2015-09-21 22:33:55 +03:00
Homu
5b7a4a03bb
Auto merge of #261 - kbknapp:issue-254, r=kbknapp
...
docs(Arg): unhides fields of the Arg struct
2015-09-21 12:43:29 +09:00
Kevin K
931aea8842
docs(Arg): unhides fields of the Arg struct
2015-09-20 20:34:20 -04:00
Homu
398b46756b
Auto merge of #260 - nelsonjchen:typo_fixes, r=kbknapp
...
Various typo fixes
Some various typo fixes and commas and stuff.
I did change one thing though. The portion in the README that's affected by 34b6eb2 still refers to `clap` as a sub 1.0 library. I took that out, but if that is stepping over the line, I can take it out.
2015-09-21 09:03:13 +09:00