Ed Page
34368419c2
refactor(bench): Pull out benchmarks into own crate
...
This is mostly about avoiding criterion's build times when just
developing clap itself.
I'm assuming the derive test changed because criterion's clap v2 isn't
in the dependency tree anymore.
2022-06-03 13:51:26 -05:00
Ed Page
552e6feb3f
fix(derive): Adjust precedence for flag/occurrence logic
2022-06-02 16:56:12 -05:00
Ed Page
cccc88bcc2
fix(derive): Fix typo in error messages
2022-06-02 16:46:50 -05:00
Ed Page
773ba94c4e
refactor(derive): Merge handling of bool/from_flag
...
This will make it easier to divide off parser logic for adding in
actions.
This does mean we can't provide error reporting on bad values with
`bool` but
- We should have also been doing that for `from_flag`
- We'll be dropping this soon in clap4 anyways
2022-06-02 13:01:59 -05:00
Ed Page
dfc55cd6e3
test(derive): Update ui test to be correct otherwise
2022-06-02 11:59:09 -05:00
Ed Page
408ca3c5d7
test(derive): Update for deprecations
2022-05-25 13:13:22 -05:00
Ed Page
b52c7f115e
feat(derive): Allow users to opt-in to ValueParser
...
For clap 3, its opt-in as a precaution against breaking
compatibility in some weird cases.
This does require the types to implement `Clone`.
Fixes #3734
Fixes #3496
Fixes #3589
2022-05-20 15:38:44 -05:00
Ed Page
e0e7383300
test: Re-enable ui tests
...
`derive_ui.rs` did not have a marker for needing to be updated on MSRV
changes, so it got missed.
2022-05-20 14:10:32 -05:00
Ed Page
17c99d2878
test(derive): Unsure why this is failing
2022-05-12 06:23:38 -05:00
Liu Dingming
1b63fbd6df
feat(derive): Start unstable-v4
feature flag
...
This is split out of #3661 as several changes I'm working on need it.
2022-05-06 14:56:55 -05:00
shir0kamii
fb4755d1c3
feat(derive): Don't abort when non-unit variant is skipped
2022-03-31 18:49:21 +02:00
shir0kamii
ee3d12ec56
fix(derive): Abort on non-unit variant
2022-03-30 03:49:14 +02:00
Ed Page
7aa45667f5
Merge pull request #3472 from epage/cmd
...
fix: Rename App to Command
2022-02-15 07:55:36 -06:00
Maarten de Vries
bd68653248
test: Add UI test for unsupported parsers
2022-02-15 12:00:25 +01:00
Ed Page
c4144d7d6c
docs: Update App references to Command
2022-02-14 15:33:49 -06:00
Rob Donnelly
a19bca8a10
docs(error): Update link to explicit bool parser example
2022-01-31 21:58:54 -08:00
Ed Page
b190a6a817
test: Consolidate clap tests
...
This reduces the need for us to have `clap` as a dependency in
`clap_derive`, preparing the way to fix #15 .
2021-11-30 10:07:08 -06:00