Pavan Kumar Sunkara
cfb0e95c9e
Fix some stuff
2020-05-12 10:39:24 +02:00
Josh Holland
5948754d2f
fix(completions): improve correctness of completions when whitespace is involved
...
compgen takes exactly one "word" argument; if multiple are passed, it
will ignore all but the first. If `$cur` is not quoted and contains
whitespace, it will be expanded into multiple words, so the completions
will be based only on the first word of `$cur`, which is clearly not
correct.
To fix this, quote `$cur` to prevent word splitting, where necessary
(Bash does not perform word splitting inside the extended test command
`[[`, so quotes aren't necessary there).
2020-05-12 01:32:15 +02:00
Kevin Tonon
0b58088781
Fix clap_app! usage example
...
I found this usage example confusing because `matches` was actually an `App`
2020-05-12 00:58:41 +02:00
Mark Thebridge
8fc099469d
fix(parser): Better interaction between AllowExternalSubcommands and SubcommandRequired
2020-05-12 00:57:35 +02:00
Charles Hall
1019724026
setting(DisableHelpFlags): disable the automatic generation of the -h/--help flags
2020-05-12 00:55:49 +02:00
Peter Corlett
719161ebba
fix(macros): fixes broken pattern which prevented calling multi-argument Arg methods
2020-05-12 00:45:32 +02:00
Windfarer
2b2dbbc506
adding case_insensitive to yaml parsing
2020-05-12 00:36:47 +02:00
Ivan Tham
9849430b11
style: group example
2020-05-12 00:32:52 +02:00
Felix Rabe
3ea552bfe2
Typo
2020-05-12 00:30:58 +02:00
raffitz
b1b31c3ab7
Add long_version support in YAML parsing
2020-05-12 00:30:48 +02:00
kevinlmadison
195b6cb245
fix typo in example 04_using_matches.rs
2020-05-12 00:30:03 +02:00
bors[bot]
33c63c6e29
Merge #1901
...
1901: implement Arg::short_alias and Arg::short_aliases r=pksunkara a=connorskees
Co-authored-by: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com>
2020-05-11 16:03:51 +00:00
ConnorSkees
59f3e9414b
allow short aliases on Arg
...
this implements Arg::short_alias, Arg::short_aliases,
Arg::short_visible_alias, and Arg::short_visible_aliases in addition to
adding their associated tests
2020-05-11 11:21:01 -04:00
bors[bot]
c691fedf2d
Merge #1916
...
1916: Minor fix for the README r=CreepySkeleton a=pksunkara
Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
2020-05-11 13:13:10 +00:00
Pavan Kumar Sunkara
cc32c03055
Minor fix for the README
2020-05-11 11:15:59 +02:00
bors[bot]
9d03c8497c
Merge #1908
...
1908: add tests for invalid UTF-16 on Windows r=pksunkara a=oconnor663
Co-authored-by: Jack O'Connor <oconnor663@gmail.com>
2020-05-06 05:41:00 +00:00
Jack O'Connor
952309c8d6
add tests for invalid UTF-16 on Windows
...
These are similar to the tests backported to the 2.x branch in
https://github.com/clap-rs/clap/pull/1907 . These are more comprehensive,
because the OsStr splitting methods are more robust now.
2020-05-05 18:18:30 -04:00
bors[bot]
5239d2c371
Merge #1902
...
1902: Some modifications to allow cargo verification to work r=CreepySkeleton a=pksunkara
Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
2020-05-03 20:53:26 +00:00
Pavan Kumar Sunkara
b562ce4d63
Some modifications to allow cargo verification to work
2020-05-03 11:48:01 +02:00
bors[bot]
8f98a329da
Merge #1715
...
1715: Update README for beta release r=kbknapp a=pksunkara
Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
2020-05-03 07:09:49 +00:00
bors[bot]
2ba7816c9e
Merge #1894
...
1894: Eradicate warnings r=pksunkara a=CreepySkeleton
Co-authored-by: CreepySkeleton <creepy-skeleton@yandex.ru>
2020-05-03 06:50:57 +00:00
CreepySkeleton
56fdfb9edd
Eradicate warnings and errors: tests and examples
2020-05-02 23:33:47 +03:00
CreepySkeleton
f803616011
Deny warnings in CI
2020-05-02 23:33:47 +03:00
CreepySkeleton
2eebd76a04
Eradicate warnings: main codebase
2020-05-02 23:33:43 +03:00
Pavan Kumar Sunkara
954dd3e20a
Test readme too
2020-05-02 22:27:45 +02:00
Pavan Kumar Sunkara
a67d1d7a40
Update README for beta release
2020-05-02 22:27:42 +02:00
bors[bot]
306dc83036
Merge #1895
...
1895: docs(README.md): fix a broken link to CONTRIBUTING.md r=CreepySkeleton a=noritada
Co-authored-by: Noritada Kobayashi <noritada.kobayashi@gmail.com>
2020-05-02 19:39:10 +00:00
Noritada Kobayashi
6d62cca1ac
docs(README.md): fix a broken link to CONTRIBUTING.md
2020-05-03 03:56:35 +09:00
bors[bot]
19e3e97544
Merge #1893
...
1893: Handle more edge cases for an `ArgStr` prefix r=kbknapp a=dylni
Co-authored-by: dylni <46035563+dylni@users.noreply.github.com>
2020-05-02 02:14:14 +00:00
dylni
99096ecbe9
Handle more edge cases for an ArgStr
prefix
2020-05-01 18:19:40 -04:00
bors[bot]
a104359908
Merge #1892
...
1892: Fix link to 13_enum_values example r=kbknapp a=dbxnr
Co-authored-by: dbxnr <dbxnr@users.noreply.github.com>
2020-05-01 21:06:56 +00:00
dbxnr
8769dfa972
Fix link to 13_enum_values example
2020-05-01 21:32:43 +01:00
bors[bot]
99e862945e
Merge #1883
...
1883: External subcommand r=pksunkara a=CreepySkeleton
Co-authored-by: CreepySkeleton <creepy-skeleton@yandex.ru>
2020-05-01 17:59:32 +00:00
CreepySkeleton
a21372e9ed
Fix ui tests
2020-05-01 20:09:55 +03:00
bors[bot]
93dd22c2f9
Merge #1890
...
1890: fix(build/app): don't use long help for `print_help() r=kbknapp a=cole-h
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
2020-05-01 15:57:11 +00:00
Cole Helbling
2bc057eaa5
fix(build/app): don't use long help for print_help()
...
For long help, there's still `print_long_help()`.
2020-05-01 08:01:26 -07:00
bors[bot]
65ee7f6df1
Merge #1888
...
1888: Moved the meta stuff to wiki r=kbknapp a=pksunkara
Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
2020-05-01 13:21:16 +00:00
CreepySkeleton
6bdb6d9b2e
Marry AllowExternalSubcommands with SubcommandRequiredElse*
2020-05-01 15:33:36 +03:00
bors[bot]
70287eae82
Merge #1884
...
1884: Make validator take &str instead of String r=pksunkara a=CreepySkeleton
Co-authored-by: CreepySkeleton <creepy-skeleton@yandex.ru>
2020-05-01 11:48:50 +00:00
CreepySkeleton
ec6b6e1e36
Make validator take &str instead of String
2020-05-01 14:21:11 +03:00
Pavan Kumar Sunkara
5ca217e8e8
Moved the meta stuff to wiki
2020-05-01 10:52:04 +02:00
CreepySkeleton
ee463ba834
Make extrernal_subcommand
ALMOST work
2020-04-30 20:20:21 +03:00
CreepySkeleton
3b418fe1a1
Cleaning
2020-04-30 15:11:39 +03:00
bors[bot]
087fab2ab3
Merge #1882
...
1882: Make `struct SubCommand` private r=pksunkara a=CreepySkeleton
Co-authored-by: CreepySkeleton <creepy-skeleton@yandex.ru>
2020-04-29 19:20:42 +00:00
CreepySkeleton
7a7148d087
Make struct SubCommand
private
2020-04-29 21:34:59 +03:00
bors[bot]
5b9dbee5db
Merge #1876
...
1876: Allow usage of deprecated arg::help in yaml r=CreepySkeleton a=pksunkara
Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
2020-04-28 11:39:05 +00:00
bors[bot]
0bf70776de
Merge #1874
...
1874: Rename some internal stuff r=CreepySkeleton a=pksunkara
Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
2020-04-28 10:44:22 +00:00
Pavan Kumar Sunkara
20d6b01818
Allow usage of deprecated arg::help in yaml
2020-04-28 12:37:52 +02:00
bors[bot]
0d82c127ce
Merge #1875
...
1875: Implemented arg_enum for option and vec r=CreepySkeleton a=pksunkara
Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
2020-04-28 10:18:46 +00:00
Pavan Kumar Sunkara
68ce9dd6ec
Rename trybuild file to ui
2020-04-28 11:39:30 +02:00