Commit graph

3768 commits

Author SHA1 Message Date
Ajeet D'Souza
5809ae6060
feat: Add AppSettings::DisableEnv (#2493)
* Add DisableEnv flag

* Apply formatting

* Add tests
2021-05-21 00:47:47 +05:30
Ajeet D'Souza
460459c771
fix(usage): Move positional args to end of usage string (#2492)
* Move positional args to end of USAGE

* Remove -- from usage string
2021-05-21 00:29:21 +05:30
Pavan Kumar Sunkara
abe2373cca
Merge pull request #2026 from zkat/master
feat(derive): Add support from inheriting global options in subcommands
2021-05-20 13:52:24 +01:00
Felipe Sere
46cd4fe664 Run fmt 2021-05-19 19:43:06 +01:00
Felipe Sere
6bac0c53bf Rename flag parameter to not clash with subcommand 2021-05-19 19:42:39 +01:00
Pavan Kumar Sunkara
54dffec127 Added homepage for website, fixes #2478 2021-05-18 23:46:23 +01:00
Felipe Sere
03d4989ef9 Replicate the derive test for from_global 2021-05-18 22:21:18 +01:00
Felipe Sere
856de610a2 Create a separate test for from_global 2021-05-18 21:35:49 +01:00
Pavan Kumar Sunkara
278d17048f
Merge pull request #2452 from Lunderberg/master
imp(validator): Case-insensitive required_if_eq when arg is case-insensitive
2021-05-18 20:40:18 +01:00
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