Kevin K
03333800fe
refactor: remove code going to other crates and deprecations
2018-10-19 23:31:06 -04:00
Kevin K
eaa0700e7e
style: rustfmt run
2018-08-01 23:13:51 -04:00
Kevin K
53a7d72523
chore: removes warnings and commented out code
2018-08-01 23:13:32 -04:00
Kevin K
a769639f8b
chore: prepares for the move to clap-rs org
2018-08-01 23:06:12 -04:00
Kevin K
9d2d9f7a6c
fix: fixes some suggestions tests
2018-08-01 22:23:36 -04:00
Kevin K
49defad11b
fix: fixes help output tests
2018-08-01 22:09:09 -04:00
Kevin K
e1371ad15c
fix: fixes group conflicts tests
2018-08-01 21:56:03 -04:00
Kevin K
a2cd63cc9e
fix: fixes group tests on v3-master
2018-08-01 21:43:55 -04:00
Kevin K
5a06a8270a
fix(Requirements): fixing requirements and conflicts for issue 1158
...
Fixes requirements and conflicts on the v3 branch
Closes #1158
2018-07-31 23:32:11 -04:00
Kevin K
c22bc3e1fc
depr(SubCommand::with_name): deprecates SubCommand facade to prefer App::new
2018-07-24 16:57:18 -04:00
Kevin K
a9cbf3e5b9
depr(ArgMatches::usage): deprecates ArgMatches::usage in favor of App::generage_usage
2018-07-24 16:46:50 -04:00
Kevin K
8715ac268c
chore: makes some effectively private APIs public for clap_generate to use
2018-07-23 16:27:25 -04:00
Kevin K
b204620dab
refactor: updates deprecation notices for completions functions
2018-07-23 16:16:15 -04:00
Kevin K
94872e00a5
refactor(Arg): changes Arg::short to accept a char instead of &str
...
Closes #1303
2018-07-23 15:10:12 -04:00
Kevin K
53b2ca51f4
refactor(Derives): changes the derive traits for the clap_derive crate
2018-07-13 11:36:53 -04:00
Kevin K
09de35f208
Fix some broken doc links and formatting.
2018-06-30 19:33:34 -04:00
Alena Yuryeva
2133bd148b
imp: Hash for Arg
2018-06-30 21:03:49 +03:00
Kevin K
cc082a0347
Merge pull request #1311 from kbknapp/extract-trait
...
refactor: Changed the custom derive traits
2018-06-30 12:21:03 -04:00
Alan K
4492aa5b96
refactor: Changed the custom derive traits
2018-06-30 18:19:29 +02:00
Kevin K
37546c653a
fix(Elvish): fixes the porting from v2 to v3 for the Elvish shell completions
2018-06-26 22:03:46 -04:00
ZhouQD
694582fb48
fix(Elvish): ports changes from v2 to v3 about Elvish completion generation
2018-06-26 21:18:04 -04:00
Kevin K
3d3d4b1e9a
feat(Completions): adds completion support for Elvish.
2018-06-26 21:15:48 -04:00
Tobias Bucher
159169ae94
fix(OsValues): Add ExactSizeIterator
implementation
...
It seems like an oversight that this was omitted.
2018-06-26 21:12:06 -04:00
Alan K
29fb2166aa
refactor(arg_group): Change from folder mod to a file module
2018-06-22 13:51:48 +02:00
Alan K
8a7ac8f543
imp(yaml): Updated yaml-rust to 0.4
...
Closes #747 , #1110
2018-06-22 13:32:13 +02:00
Kevin K
e5def030d3
refactor(Modules): moves the modules around into a more logical order to make contribution easier
2018-06-12 11:44:40 -04:00
Kevin K
b033bb5abc
chore: ordermap to indexmap
2018-06-12 10:22:18 -04:00
Kevin K
746640fafb
imp(Help): always uses long about with the main help message in subcommands. Thanks to @savish
2018-06-12 10:09:34 -04:00
Alan K
df35813d17
fix: fixes compilation errors form cherry picked commits
2018-06-12 10:04:24 -04:00
Kevin K
4ebede6d9a
Merge pull request #1271 from stevepentland/wasm-windows-fix
...
Include guards around os-specific string elements.
2018-06-12 09:53:22 -04:00
Kevin K
abd7be3362
Merge pull request #1247 from tormol/osstringext_cleanup
...
Remove unused or unnecessary methods from osstringext
2018-06-12 09:51:07 -04:00
Kevin K
3b633e68b1
Merge pull request #1258 from little-dude/warnings
...
Fix compilation warnings
2018-05-22 09:43:31 -04:00
Kevin K
0d20694ce5
Merge pull request #1257 from little-dude/deprecate_from_usage
...
replace Arg::from_usage by Arg::from
2018-05-22 09:42:11 -04:00
Corentin Henry
78cbb634a9
fix dead code warning
2018-04-21 12:17:48 -07:00
Corentin Henry
32fcd49fdf
fix unused mut warnings
2018-04-21 12:14:49 -07:00
Corentin Henry
ff4ae462f5
fix unused variable warning
2018-04-21 12:14:05 -07:00
Corentin Henry
4f602b7e86
replace Arg::from_usage by Arg::from
2018-04-21 11:59:19 -07:00
Corentin Henry
e1f1a13e4d
convert Result<(), OsString> -> Result<(), String>
...
fix https://github.com/kbknapp/clap-rs/issues/848
2018-04-21 11:24:59 -07:00
Alex Burka
c3033ca75f
imp: make Arg::validator more flexible
...
Makes the validator functions more flexible by changing the return
type from Result<(), String> to Result<O, E> where O is anything
and E is anything convertible to a String.
This allows, for example, using the same function for validating
and parsing your argument.
Breaking change (albeit tiny) due to function signature change.
2018-04-04 20:34:40 -04:00
Kevin K
8973f229b0
feat(Help): adds the ability for custom help sections
...
Args can now be added to custom help sections. This breaks up the builder pattern a little by adding help section declarations inline, but it's the most intuitive method and doesn't require strange nesting that feels awkward.
```rust
app::new("foo")
.arg(Arg::with_name("arg1")) // under normal headers
.help_heading("SPECIAL")
.arg(Arg::with_name("arg2")) // under SPECIAL: heading
```
Closes #805
2018-04-03 23:32:59 -04:00
Christian Legnitto
36815fec59
imp(macros): Support shorthand syntax for ArgGroups
...
Fixes https://github.com/kbknapp/clap-rs/issues/1231 .
2018-04-03 23:03:21 -04:00
Kevin K
41e29417b5
fix: fixes hiding args from short or long help in v3 context
...
Fixes the implementation of the hiding of arguments form the short or long help on v3
2018-04-03 23:01:45 -04:00
Kevin K
82e8a47f24
api(Arg): adds abilit to hide an arg from the short or long help message
...
Add logic to filter based on hidden long/short.
There is still an issue with the logic in parser.rs use_long_help. This
causes invalid evaluation of whether to show/hide based on long or short help
Complete check for use_long_help, add tests
2018-04-03 20:00:36 -04:00
Kevin K
2264b255d3
api(App): adds App::unset_global_setting to be able to unset a globa setting
2018-03-21 19:32:41 -04:00
Kevin K
60c634be51
api(App): adds App::mut_arg to be able to mutate Args after they've been added to an App
...
Once can now mutate an Arg instance after it's already been added to an App struct.
This is helpful when you wish to add all the args in an non-verbose way, such as
via the usage strings, but wish for a handful to have settings which arne't posible
in the usage string definitions.
2018-03-21 19:26:22 -04:00
Kevin K
e5d44eac21
api(App): adds App::get_matches_mut for Lib Blitz style naming consitency
2018-03-21 15:12:47 -04:00
Kevin K
fba268ad54
refactor: changes the signature of App::args to be more generic
2018-03-21 15:05:30 -04:00
Kevin K
f23659619d
depr(App): adds plural settings and unset_settings to deprecations
2018-03-21 15:05:01 -04:00
Aleksey Kladov
dfbae74e6d
fix(Suggestions): disables suggestions when AllowExternalSubcommand is set
2018-03-21 00:01:23 -04:00
Kevin K
a7b3a75cc4
api(Arg): adds Arg::raw as convenience method to indicate multiple, last, and allow_hyphen_values
2018-03-20 23:53:36 -04:00