Commit graph

4259 commits

Author SHA1 Message Date
Kat Marchán
814b56dccb feat(derive): Add support from inheriting global options in subcommands 2021-05-18 17:39:51 +01:00
Eldritch Cheese
fa991754d3 imp(validator): Case-insensitive required_if_eq when arg is case-insensitive 2021-05-15 09:45:24 -07:00
Pavan Kumar Sunkara
a4b9bfc97b
Merge pull request #2481 from kolloch/feature/no-clone-in-insert
Input.insert: No need to clone
2021-05-13 19:13:00 +01:00
Peter Kolloch
e89f1e6c4d Input.insert: No need to clone 2021-05-13 13:29:01 +02:00
Pavan Kumar Sunkara
73cf47a533
Merge pull request #2472 from ldm0/master
Fix clippy errors and warnings
2021-05-08 09:39:07 +01:00
Donough Liu
2a921d4cda Fix clippy warnings. 2021-05-07 19:05:18 +00:00
liudingming
529c55f753 Relax trait bound on clap Error source 2021-05-08 01:56:13 +08:00
Pavan Kumar Sunkara
df69011025
Merge pull request #2470 from ldm0/master
Add multiple_* parsing for yaml
2021-05-07 12:26:59 +01:00
liudingming
4dfc900a99 Clippy fix 2021-05-07 15:20:03 +08:00
liudingming
64e226ef33 Add multiple_* parsing for yaml 2021-05-07 14:34:03 +08:00
liudingming
a995e5a204 Add yaml multiple_* tests 2021-05-07 14:34:03 +08:00
Pavan Kumar Sunkara
8e1a2e1114 Update issue templates 2021-05-02 19:34:53 +01:00
Pavan Kumar Sunkara
92f744cc49
Merge pull request #2455 from sharnoff/master
add missing `$crate::` in `clap_app!` for arg.about(...)
2021-04-27 20:15:56 +01:00
sharnoff
47aaca1e5d
change 'tests/macros.rs' to not import clap_app!
This should help to guard against future errors where `clap_app!` refers
to itself without the required "$crate::" prefix
2021-04-27 11:21:54 -07:00
sharnoff
5ec28b6093
add missing $crate:: in clap_app! 2021-04-25 19:00:19 -07:00
Pavan Kumar Sunkara
d253c34676
Merge pull request #2442 from clap-rs/ci
Get github ci for working for mingw
2021-04-14 04:10:13 +05:30
Pavan Kumar Sunkara
f42495d552 Improve cancelling of previous runs 2021-04-13 22:49:19 +01:00
Pavan Kumar Sunkara
99d4aba95c Remove azure pipelines 2021-04-13 22:46:24 +01:00
Pavan Kumar Sunkara
e20c0c7a5d Get github ci for working for mingw 2021-04-13 22:20:05 +01:00
Pavan Kumar Sunkara
9c99c358c6
Merge pull request #2440 from reaganmcf/app-setting-subcommand-help-long-form
setting: UseLongFormatForHelpSubcommand
2021-04-13 04:42:51 +05:30
Reagan McFarland
b184dc001b setting: SubcommandHelpShowsLongForm implemented
Refactoring and better test cases

Refactored SubcommandHelpShowsLongForm to
UseLongFormatForHelpSubcommand.
Tests and docuemntation examples use about and long_about instead of
(before/after)_help.

Removed commented out tests

Linting: Fix trailing new line

Updated change log, refactored tests and doc str

Reordered items in the Changelog
New test added and old tests removed that were redundant
Doc string for AppSettings::UseLongFormatForHelpSubcommand fixed
2021-04-11 14:31:40 -04:00
Pavan Kumar Sunkara
5bcc502e8b
Merge pull request #2441 from clap-rs/deps
Specify dep patch versions
2021-04-11 16:27:18 +05:30
Pavan Kumar Sunkara
3c9cc0cf91 Specify dep patch versions 2021-04-11 10:38:13 +01:00
Pavan Kumar Sunkara
9be6db5999
Merge pull request #2436 from ajeetdsouza/ajeet/elvish
Fix completions for Elvish shell
2021-04-08 18:57:48 +05:30
Ajeet D'Souza
401744e24b Remove old slice syntax 2021-04-08 17:10:17 +05:30
Ajeet D'Souza
34fb411965 Use str:has-prefix in place of has-prefix 2021-04-08 16:51:06 +05:30
Pavan Kumar Sunkara
95c83d0b70
Merge pull request #2434 from dalance/path_of_generate_to
Add PathBuf to clap_generate::generate_to
2021-04-06 14:16:50 +05:30
dalance
35c3814419 Add PathBuf to clap_generate::generate_to 2021-04-06 11:18:41 +09:00
Pavan Kumar Sunkara
8b721a2bcd
Merge pull request #2433 from pickfire/patch-2
Show default derive example with coloredhelp
2021-04-04 13:38:58 +05:30
Ivan Tham
ac8a9582f9
Show default derive example with coloredhelp 2021-04-04 12:08:57 +08:00
Pavan Kumar Sunkara
d3b6c1b3f9 Update github workflow for site 2021-04-04 00:40:28 +01:00
Pavan Kumar Sunkara
a0314f16b9
Merge pull request #2430 from nickzana/fix-default-value-example-typo
Fix minor typos in 10_default_values.rs
2021-04-02 04:37:39 +05:30
Nick Zana
a637d96d82
Fix minor typos in 10_default_values.rs 2021-04-01 17:41:17 -04:00
Pavan Kumar Sunkara
52814b893c
Merge pull request #2415 from cbzehner/ignore-extra-fields-on-arg
Ignore extra fields in Arg yaml definitions
2021-03-14 14:00:30 +05:30
Pavan Kumar Sunkara
4e3b4589ee
Merge pull request #2411 from clap-rs/upgrader
Cleanup and add changelog
2021-03-14 14:00:16 +05:30
Chris Zehner
407e629523 Ignore extra fields in Arg yaml definitions 2021-03-13 19:46:38 -06:00
Pavan Kumar Sunkara
dd352be191
Merge pull request #2412 from clap-rs/docs
Apply cargo-intraconv
2021-03-13 18:11:52 +05:30
Pavan Kumar Sunkara
d9fb11eba2 Apply cargo-intraconv 2021-03-13 14:11:47 +05:30
Pavan Kumar Sunkara
b69c192ab4 Update changelog and implement more stuff for the upgrader 2021-03-13 14:03:15 +05:30
Pavan Kumar Sunkara
f029047c03 Rename NoEmptyValues to ForbidEmptyValues 2021-03-13 12:05:34 +05:30
Pavan Kumar Sunkara
49954c28ad Remove unstable feature flag 2021-03-13 11:40:56 +05:30
Pavan Kumar Sunkara
7442de7d9a
Merge pull request #2407 from logansquirel/master
api: Add clap_generate::Shell enum
2021-03-11 21:24:30 +05:30
Logan SQUIREL
d30a00e518
Make clap_generate::shell mod private 2021-03-11 11:13:31 +01:00
Logan SQUIREL
66f100f533
Improve clap_generate::Shell implementations 2021-03-11 10:56:44 +01:00
Logan SQUIREL
6a4cc8f9dd
api: Add clap_generate::Shell enum 2021-03-11 10:56:44 +01:00
Pavan Kumar Sunkara
5618ec39e5
Merge pull request #2360 from ldm0/allow_empty
Allow empty value by default, introduce NoEquals Error
2021-03-11 14:44:41 +05:30
ldm0
d36b201fd6 Apply suggestions 2021-03-11 05:22:08 +00:00
Pavan Kumar Sunkara
2952fd6d73
Merge pull request #2406 from omar25h/fix-subcmd
fix: subcommand with field name subcmd compilation
2021-03-11 01:41:53 +05:30
Omar El Halabi
777e0f43cb fix: subcommand with field name subcmd compilation 2021-03-10 19:49:41 +02:00
ldm0
a1d4bd8488 Allow empty value by default, introduce NoEquals Error 2021-03-10 17:39:50 +00:00