Ed Page
f68500d9fd
fix: Replace Arg::env with Arg::env_os
...
With `Into<OsStr>`, the separate function isn't needed.
2022-09-13 14:55:12 -05:00
Ed Page
ba15b5f430
fix!: Rename Arg::number_of_values to Arg::num_args
2022-08-03 14:45:47 -05:00
Ed Page
0664c6db37
fix!: Remove Arg::use_value_delimiter in favor of Arg::value_delimiter
2022-08-03 11:15:29 -05:00
Ed Page
470531b515
fix!: Replace multiple_values
with number_of_values
...
This reduces ambiguity in how the different "multiple" parts of the API
interact and lowrs the amount of API surface area users have to dig
through to use clap.
For now, this is only a matter of cleaning up the public API. Cleaning
up the implementation is the next step.
2022-08-01 15:50:23 -05:00
Ed Page
5f20fe1930
docs: Shift focus from takes_value to actions
2022-07-26 14:50:51 -05:00
Ed Page
9caec5a52d
fix(parser): Deprecate ArgMatches::is_present
2022-06-10 14:21:25 -05:00
Ed Page
86a162d1bb
fix(parser): Deprecate occurrences_of
...
This mostly exist for
- Knowing of the value came from the command-line but we now have
`ArgMatches::source`
- Counting the number of flags but we now have `ArgAction::Count`
2022-06-07 13:30:32 -05:00
Ed Page
002d4421e5
Revert "fix(parser): Don't treat missing values as missing args"
...
This reverts commit 50f4018dcf
.
This broke compatibility with the derive when dealing with
`Option<Option<T>>` and related cases.
2022-06-02 16:56:14 -05:00
Ed Page
50f4018dcf
fix(parser): Don't treat missing values as missing args
2022-06-02 13:45:18 -05:00
Ed Page
a712adefcd
fix(parser): Deprecate value_of
and friends
2022-05-25 12:57:11 -05:00
Ed Page
256643f8d3
fix: Deprecate possible_values
2022-05-25 12:57:11 -05:00
Ed Page
177511dab1
fix: Deprecate validator / validator_os
...
`validator_regex` is being ignored for now as I await on a comment
period for #3743
2022-05-25 12:57:11 -05:00
Ed Page
c4144d7d6c
docs: Update App references to Command
2022-02-14 15:33:49 -06:00
Ed Page
47d76742eb
feat: Add Arg
getters for all settings
...
This is prep for #2717
2022-02-10 10:18:41 -06:00
Ed Page
9c6c0174d2
test: Show more detailed failures
2021-12-27 13:57:38 -06:00
Ed Page
bfc486501a
test: Panic, rather than exit, on error
...
Working on a fix for #3217 and can't see what is failing because the
test process exits.
2021-12-27 12:56:15 -06:00
Ed Page
045bf99ae0
test: Consolidate builder tests
...
This is prep for moving the derive tests. Besides organizing the test
folder for each API, this should reduce link time at the cost of
re-compiling more when a test changes.
2021-11-30 10:07:05 -06:00