UnknownArgumentValueParser
can only be used with string value argument
#5081
Labels
A-builder
Area: Builder API
C-bug
Category: Updating dependencies
M-breaking-change
Meta: Implementing or merging this will introduce a breaking change.
Milestone
Please complete the following tasks
Rust Version
rustc 1.72.0-beta.11 (7a3a43a3b 2023-08-18)
Clap Version
4.3.23
Minimal reproducible code
Steps to reproduce the bug with the above code
Run the script above.
Actual Behaviour
I am not sure if this is expected. It turns out that the unknown argument must be defined as
--flag <string>
. Might be the result ofStringValueParser
in use.Here is the current cargo integration that failed rust-lang/cargo#12529.
keep-going
is always evaluated when constructingBuildConfig
even it is not a valid argument. Cargo provides a default value for unknown argument, which contradicts the definition of bool--keep-going
.Expected Behaviour
UnknownArgumentValueParser
can use with any type of argument.Additional Context
cc #5080
Debug Output
No response
The text was updated successfully, but these errors were encountered: