Setting external subcommand type is inconsistent with args #3733
Labels
A-builder
Area: Builder API
C-bug
Category: Updating dependencies
E-easy
Call for participation: Experience needed to fix: Easy / not much
M-breaking-change
Meta: Implementing or merging this will introduce a breaking change.
Milestone
Please complete the following tasks
Rust Version
rustc 1.57.0 (f1edd0429 2021-11-29)
Clap Version
master
Minimal reproducible code
arg.value_parser(clap::value_parser!(OsString))
vs
cmd.allow_invalid_utf8_for_external_subcommands(true)
Steps to reproduce the bug with the above code
Build code around it
Actual Behaviour
Inconsistent
Expected Behaviour
Being able to set a
ValueParser
for external subcommandsAdditional Context
The
PartialEq
requirement on commands is what held this back from being in #3732Debug Output
No response
The text was updated successfully, but these errors were encountered: