Kevin K
89c0ed0328
tests: adds tests to guard against --help and -h being overridable
2017-11-22 04:11:28 -05:00
Kevin K
a283d69fc0
fix: Fixes a regression where --help couldn't be overridden
...
Closes #1112
2017-11-22 04:11:28 -05:00
Kevin K
a224cdcc87
Merge pull request #1111 from ignatenkobrain/patch-3
...
bump version-sync to 0.5
2017-11-22 04:11:09 -05:00
Igor Gnatenko
6b98b6ab7d
bump version-sync to 0.5
2017-11-22 09:53:33 +01:00
Kevin K
53864b5d72
Merge pull request #1063 from Eijebong/bitflags
...
Update bitflags to 1.0 and bump version
2017-11-22 02:36:29 -05:00
Bastien Orivel
dc00ec85eb
Update the minimum version of rust 1.20.0
2017-11-21 12:39:12 +01:00
Bastien Orivel
a6593410c1
Update bitflags to 1.0 and bump version
2017-11-21 12:39:12 +01:00
Andrew Hobden
5ee70bbe99
Add case sensitive option for ArgEnum
2017-11-15 18:49:55 +01:00
Guillaume Pinot
1173955d37
v0.1.5
2017-11-14 15:19:33 +01:00
Guillaume Pinot
227d1fa73c
fix bug with optional subsubcommand and Enum
2017-11-14 15:18:13 +01:00
Kevin K
c4d67d3263
Merge pull request #1109 from kbknapp/issue-1105
...
Issue 1105
2017-11-13 19:12:44 -05:00
Kevin K
0842fd1bcd
Merge pull request #1108 from focusaurus/issue-1106
...
docs: Fix URL path to github hosted files
2017-11-13 17:09:13 -05:00
Kevin K
17a4d8a860
tests: adds tests to guard aginst issue 1105 and empty values in options
2017-11-13 17:05:28 -05:00
Kevin K
2fb758219c
fix: fixes a bug that allowed options to pass parsing when no value was provided
...
Since options have `empty_values(true)` by default, so long as another valid flag
or option came after the option in question, clap would parse it as an empty value
incorrectly. This commit forces the user to explicitly add an empty value.
`--option "" --flag` is allowed
`--option --flag` is no longer allowed unless the user has *also* set `min_values(0)`
This commit also fixes an issue where `-o=` would be parsed as a value of `Some("=")`
instead of `Some("")`.
Closes #1105
2017-11-13 17:02:52 -05:00
Kevin K
46c1317203
chore: silences unused macro warning for debug macros
2017-11-13 17:01:09 -05:00
Peter Lyons
ce72aada56
docs: Fix URL path to github hosted files
...
Closes #1106
2017-11-13 14:03:25 -07:00
Kevin K
39fae92997
Merge pull request #1107 from ignatenkobrain/patch-2
...
bump version-sync to 0.4
2017-11-13 14:47:40 -05:00
Igor Gnatenko
5cfafe4dcd
bump version-sync to 0.4
2017-11-13 18:57:47 +01:00
Kevin K
c46f12dbf8
Merge pull request #5 from kbknapp/metadata
...
Update Cargo.toml metadata.
2017-11-12 15:57:43 -05:00
Andrew Hobden
8073b57c2a
Update Cargo.toml metadata.
...
Point to new repo. Closes #2 .
2017-11-12 20:58:36 +01:00
Kevin K
528a7cb571
Merge pull request #1102 from kbknapp/issue-1095-take2
...
chore: fixes the attribute to allow unused imports on nightly
2017-11-12 14:06:51 -05:00
Andrew Hobden
d2baf8b70c
init
2017-11-12 19:04:58 +01:00
Kevin K
3f1d23934d
chore: fixes the attribute to allow unused imports on nightly
...
Closes #1095
2017-11-12 12:51:14 -05:00
Kevin K
6cd43c2361
Merge pull request #1101 from ignatenkobrain/patch-1
...
bump ansi_term to 0.10
2017-11-09 13:32:12 -05:00
Igor Gnatenko
851fad43c0
bump ansi_term to 0.10
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2017-11-09 17:35:33 +01:00
Kevin K
de7b236dd2
Merge pull request #1100 from jfrankenau/fix-typo
...
docs: fix typo
2017-11-09 08:07:19 -05:00
Guillaume Pinot
f24fcb19a8
v0.1.4
2017-11-09 10:24:18 +01:00
kennytm
13fc4fb66a
Implement custom string parser from either &str
or &OsStr
. ( #28 )
...
* Implement custom string parser from either &str or &OsStr.
Fix #2 .
Fix #3 .
* Addressed review comments.
2017-11-09 10:23:02 +01:00
Johannes Frankenau
002b07fc98
docs: fix typo
2017-11-09 08:56:45 +01:00
Kevin K
38fe447292
Merge pull request #1096 from kbknapp/issues-1093,1095
...
Issues 1093,1095
2017-11-06 21:48:07 -05:00
Kevin K
e78bb757a3
imp: adds '[SUBCOMMAND]' to usage strings with only AppSettings::AllowExternalSubcommands is used with no other subcommands
...
Closes #1093
2017-11-06 20:15:07 -05:00
Kevin K
fb08bb5dd5
refactor: removes unused imports on nightly via cfg directive
...
If one is using a nightly Rust compiler they should compile clap
with the `nightly` feature.
```toml
[dependencies]
clap = { version = "2.27", features = ["nightly"] }
```
This isn't required for compilation to succeed, only to take
advantage of any nightly features used by clap.
If one is compiling with `#[deny(warnings)]` this commit will cause
compilation to fail if one *does not* compile with the `nightly`
since `std::ascii::AsciiExt` is no longer required in in multiple
files as of the latest Rust nightly (Nov 6th, 2017).
Closes #1095
2017-11-06 20:11:19 -05:00
Kevin K
284d01bded
Merge pull request #1091 from kbknapp/contrib-update
...
chore: updates CONTRIBUTORS.md
2017-11-02 23:24:19 -04:00
Kevin K
4ee2dfccff
chore: updates CONTRIBUTORS.md
2017-11-02 23:23:59 -04:00
Kevin K
fb8f88be74
Merge pull request #1090 from kbknapp/readme-update
...
docs(README.md): updates the readme and pulls out some redundant sect…
2017-11-02 23:15:38 -04:00
Kevin K
db6caf8663
docs(README.md): updates the readme and pulls out some redundant sections
2017-11-02 23:15:02 -04:00
Guillaume Pinot
43710cf969
update to 0.1.3
2017-11-01 22:35:27 +01:00
Guillaume Pinot
d1170466df
fix #9
2017-11-01 22:32:32 +01:00
Guillaume Pinot
29a642b10d
fix #12
2017-11-01 22:31:33 +01:00
Guillaume Pinot
5ba275680b
new release
2017-11-01 22:13:20 +01:00
Guillaume Pinot
96a726aeb7
Handle multiline doc comment as help message
...
fix #25
2017-11-01 22:13:20 +01:00
Guillaume Pinot
4880ccb025
Fix a privacy bug
...
Fix #24
2017-11-01 22:13:20 +01:00
Guillaume Pinot
f7a4be13ca
update to 0.1.1
2017-11-01 21:17:40 +01:00
Seebi
ebde32aa5b
Add raw attributes ( #26 )
...
* Add raw attributes
This makes it possible to call clap functions that don't take strings,
but any arbitrary value. Even functions that take more than one argument
can be called.
All attributes that are called `attribute_name_raw` are augmented to
`attribute_name(value)` without quoting `value`.
* Add tests for raw attributes and fix spelling
2017-11-01 08:41:58 +01:00
Kevin K
d5423a48ee
Merge pull request #1087 from durka/propag-depr
...
fix: ignore PropagateGlobalValuesDown deprecation warning
2017-10-28 10:56:34 -04:00
Alex Burka
f61ce3f55f
fix: ignore PropagateGlobalValuesDown deprecation warning
...
Fixes #1086 .
2017-10-27 12:54:03 -04:00
Kevin K
fc4bd87853
Merge pull request #1084 from kbknapp/issue-1083
...
Issue 1083
2017-10-26 11:05:17 -04:00
Kevin K
67170a8bd7
chore: increase version
2017-10-26 10:09:48 -04:00
Kevin K
0246960bdc
chore: adds term_size as an optional dep
2017-10-26 09:40:21 -04:00
Kevin K
554083ffc5
Merge pull request #1081 from kbknapp/kbknapp-patch-1
...
Fix typo in minimum required Rust version
2017-10-24 21:51:35 -04:00