Commit graph

3377 commits

Author SHA1 Message Date
bors[bot]
9af127a4f4
Merge #1949
1949: docs: correct some typos r=pksunkara a=goncalor



Co-authored-by: Gonçalo Ribeiro <darklaw13@yahoo.co.uk>
2020-05-30 10:36:45 +00:00
Gonçalo Ribeiro
fb8e0d815d docs: correct some typos 2020-05-30 11:14:47 +01:00
bors[bot]
39ad139a3a
Merge #1948
1948: chore(Cargo.toml): bump proc-macro-error to 1 r=pksunkara a=paolobarbolini



Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
2020-05-28 22:39:10 +00:00
Paolo Barbolini
d771d6debd chore(Cargo.toml): bump proc-macro-error to 1 2020-05-29 00:13:17 +02:00
bors[bot]
f96496af1a
Merge #1947
1947: Create FUNDING.yml r=pksunkara a=acfoltzer



Co-authored-by: Adam C. Foltzer <acfoltzer@acfoltzer.net>
2020-05-27 17:17:43 +00:00
Adam C. Foltzer
3710d59c93
chore: create FUNDING.yml
I recently released [`cargo-fund`](https://users.rust-lang.org/t/cargo-fund-discover-funding-links-for-your-projects-dependencies/43251?u=acfoltzer), and noticed that while there is sponsorship information in this repo, but it's not yet encoded in a machine-readable way. Adding this metadata will add a "Sponsor" button to the repo, and allow `cargo-fund` to show the project's sponsorship link. For more about this file format, see the [Github docs](https://help.github.com/en/github/administering-a-repository/displaying-a-sponsor-button-in-your-repository).

Updated from the patch in #1944 with the Open Collective funding link.
2020-05-27 09:55:17 -07:00
bors[bot]
a5a006b891
Merge #1942
1942: Fix Arg::required doc examples r=pksunkara a=pickfire



Co-authored-by: Ivan Tham <pickfire@riseup.net>
2020-05-25 17:51:37 +00:00
Ivan Tham
270f9ce37f
Update src/build/arg/mod.rs
Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
2020-05-25 21:06:22 +08:00
Ivan Tham
a189770e1c
Fix Arg::required doc examples 2020-05-25 21:00:17 +08:00
bors[bot]
969b543b1b
Merge #1941
1941: Use proper fmt::DebugStruct facility in Debug impl r=pksunkara a=CreepySkeleton



Co-authored-by: CreepySkeleton <creepy-skeleton@yandex.ru>
2020-05-23 17:45:12 +00:00
CreepySkeleton
a827ad5bd4 Use proper fmt::DebugStruct facility in Debug impl 2020-05-23 20:08:04 +03:00
bors[bot]
8b37d579f8
Merge #1939
1939: fixed spacing in to few argument error messages r=pksunkara a=meltinglava



Co-authored-by: meltinglava <roi1996@gmail.com>
2020-05-23 14:18:23 +00:00
meltinglava
2096777022 fixed spacing in error messages 2020-05-23 13:10:14 +02:00
bors[bot]
31ebd7efb5
Merge #1587
1587: add 'default_missing_value' configuration option r=pksunkara a=rivy



Co-authored-by: Roy Ivy III <rivy.dev@gmail.com>
2020-05-21 18:35:36 +00:00
Roy Ivy III
83a822e101 docs ~ add documentation for new 'default_missing_value' configuration option 2020-05-21 13:08:39 -05:00
Roy Ivy III
fbfe9eedf8 tests ~ add tests for new 'default_missing_value' configuration option 2020-05-21 13:06:45 -05:00
Roy Ivy III
98b5d49647 add 'default_missing_value' configuration option 2020-05-21 13:05:25 -05:00
bors[bot]
f8824fc10a
Merge #1937
1937: chore: fix typo in comment r=pksunkara a=cydave



Co-authored-by: dave <dave@cyllective.com>
2020-05-20 22:29:38 +00:00
dave
2a023b226c chore: fix typo in comment 2020-05-20 22:12:45 +02:00
bors[bot]
010898ca60
Merge #1935
1935: Rename App::set_term_width to term_width r=pksunkara a=CreepySkeleton



Co-authored-by: CreepySkeleton <creepy-skeleton@yandex.ru>
2020-05-18 10:16:03 +00:00
bors[bot]
42fa178a46
Merge #1934
1934: Add JSON scheme spec r=pksunkara a=CreepySkeleton



Co-authored-by: CreepySkeleton <creepy-skeleton@yandex.ru>
2020-05-18 09:56:22 +00:00
CreepySkeleton
5589276093 Rename App::set_term_width to term_width
None of the other methods that move self have the `set_` prefix
2020-05-18 12:46:14 +03:00
CreepySkeleton
4e6149b0c0 Add JSON scheme spec
This should allow people to set the code editor
to check .yml files for correctness
2020-05-18 11:00:07 +03:00
bors[bot]
e747ec11ab
Merge #1932
1932: fix(errors): ensure that validation failure error message includes a newline r=CreepySkeleton a=pmarks



Co-authored-by: Patrick Marks <patrick@10xgenomics.com>
2020-05-17 17:11:56 +00:00
Patrick Marks
4a9e01b0bc ensure that validation failure error message includes a newline. also add a basic test of a failed validation 2020-05-17 08:50:35 -07:00
bors[bot]
961ed9cfdd
Merge #1931
1931: Allow separate derives, but do not give examples r=CreepySkeleton a=pksunkara



Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
2020-05-16 02:18:48 +00:00
bors[bot]
ca10f8c902
Merge #1929
1929: fix(errors): incorrect missing argument error messages r=pksunkara a=pmarks



Co-authored-by: Patrick Marks <patrick@10xgenomics.com>
2020-05-15 15:54:27 +00:00
Patrick Marks
cb425946b7 fix test 2020-05-15 08:25:01 -07:00
Patrick Marks
97e3d8c0ac fix some cases of the 'The following required arguments were not provided' error message 2020-05-15 07:58:57 -07:00
bors[bot]
097bec669b
Merge #1930
1930: Consistent From<Yaml> for ArgGroup r=CreepySkeleton a=pksunkara



Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
2020-05-15 13:04:40 +00:00
Pavan Kumar Sunkara
aab2e41f8a Consistent From<Yaml> for ArgGroup 2020-05-15 13:59:31 +02:00
Pavan Kumar Sunkara
fe52d77f4e Allow separate derives, but do not give examples 2020-05-15 09:51:42 +02:00
bors[bot]
ddaa371d0c
Merge #1928
1928: Rename with_name to new for Arg & ArgGroup r=CreepySkeleton a=pksunkara



Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
2020-05-15 06:08:58 +00:00
Pavan Kumar Sunkara
7bc282dd4e Rename with_name to new for Arg & ArgGroup 2020-05-14 22:50:56 +02:00
bors[bot]
65e6f08517
Merge #1926
1926: refactor: Implement From<Yaml> on Arg and ArgGroup r=pksunkara a=lanesawyer



Co-authored-by: Lane Sawyer <github@lanesawyer.dev>
2020-05-14 08:47:37 +00:00
Lane Sawyer
1ba04346ff refactor: Implement From<Yaml> on Arg and ArgGroup 2020-05-13 19:04:53 -07:00
bors[bot]
500d64dde6
Merge #1925
1925: Fix typos r=pksunkara a=pruthvikar



Co-authored-by: Pruthvikar Reddy <pruthvikar@gmail.com>
2020-05-13 21:38:02 +00:00
Pruthvikar Reddy
28ffa721ab Fix typos 2020-05-13 21:58:50 +01:00
bors[bot]
aa6110268a
Merge #1911
1911: Option vec to vec r=pksunkara a=CreepySkeleton



Co-authored-by: CreepySkeleton <creepy-skeleton@yandex.ru>
2020-05-13 09:42:49 +00:00
CreepySkeleton
5004fa218f cargo clippy 2020-05-13 09:48:33 +03:00
bors[bot]
b9704e2808
Merge #1920
1920: Cherry pick missed commits from v2 r=CreepySkeleton a=pksunkara



Co-authored-by: kevinlmadison <coolklm121@gmail.com>
Co-authored-by: raffitz <raf.a.m.c.gon@gmail.com>
Co-authored-by: Felix Rabe <felix@rabe.io>
Co-authored-by: Ivan Tham <pickfire@riseup.net>
Co-authored-by: Windfarer <windfarer@gmail.com>
Co-authored-by: Peter Corlett <abuse@cabal.org.uk>
Co-authored-by: Charles Hall <charles@chronicembetterment.org>
Co-authored-by: Mark Thebridge <mark.thebridge@metaswitch.com>
Co-authored-by: Kevin Tonon <nobigb@gmail.com>
Co-authored-by: Josh Holland <anowlcalledjosh@gmail.com>
Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
2020-05-13 05:43:25 +00:00
CreepySkeleton
fed5c6787b Fix tests 2020-05-13 05:53:17 +03:00
CreepySkeleton
6810889879 Turn Option<Vec<T>> into Vec<T> 2020-05-13 05:53:17 +03:00
Pavan Kumar Sunkara
51723e7678
Apply suggestions from code review 2020-05-12 15:34:05 +02:00
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