Support allow_hyphen_values
in native completions
#5594
Labels
A-completion
Area: completion generator
C-enhancement
Category: Raise on the bar on expectations
E-easy
Call for participation: Experience needed to fix: Easy / not much
Please complete the following tasks
Clap Version
master
Describe your use case
For the command line:
There is no completion generated.
it should be:
This seems to be a very specific use case, but it shows that there is an error in parsing during dynamic completion when the allow_hyphen_values setting is enabled, or that allow_hyphen_values is not being considered.
Describe the solution you'd like
clap/clap_complete/src/dynamic/completer.rs
Line 76 in 5efa52a
clap/clap_complete/src/dynamic/completer.rs
Line 79 in 5efa52a
clap/clap_complete/src/dynamic/completer.rs
Line 112 in 5efa52a
do something more in these branches
Alternatives, if applicable
No response
Additional Context
There are also user cases related to the mistaken parsing.
Case 1
For the command line
completions are:
it should be:
Case 2
For the command line
completions are:
it should be:
The text was updated successfully, but these errors were encountered: