Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clap_generate: completion on subcommand is always default, even if it takes no values #3553

Open
2 tasks done
Icelk opened this issue Mar 12, 2022 · 0 comments
Open
2 tasks done
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

Comments

@Icelk
Copy link

Icelk commented Mar 12, 2022

Please complete the following tasks

Clap Version

3.1.0

Describe your use case

When generating completions for my application, Fish suggests file names after inputting a subcommand: std-dev regression<tab> gives me file name suggestions. This subcommand doesn't have any args without flags (nothing under the ARGS: section of the help output).

Describe the solution you'd like

I suggest telling Fish (and other shells?) to not complete anything, or, optimally, begin completing flags & options.

Alternatives, if applicable

No response

Additional Context

No response

@Icelk Icelk added the C-enhancement Category: Raise on the bar on expectations label Mar 12, 2022
@epage epage added A-completion Area: completion generator E-easy Call for participation: Experience needed to fix: Easy / not much labels Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants