Allow an argument to be both a positional and an option #4426
Labels
A-builder
Area: Builder API
C-enhancement
Category: Raise on the bar on expectations
S-wont-fix
Status: Closed as there is no plan to fix this
Please complete the following tasks
Clap Version
4.0.18
Describe your use case
As far as I'm aware,
short
andlong
overrides the implicit positionalness and there is no way to have both onDescribe the solution you'd like
for example, if I want to have
prog a b c
,prog -f a b c
, andprog --foo a b c
to be equivalentAlternatives, if applicable
Using
replace
fromunstable-replace
, but I have to deal with the quirks ofreplace
and also use an unstable featureOr having 2 separated fields and combine them manually, which seems overly complicated
Additional Context
No response
The text was updated successfully, but these errors were encountered: