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

Prompting in Clap #2570

Closed
2 tasks done
jakobneufeld opened this issue Jul 6, 2021 · 1 comment
Closed
2 tasks done

Prompting in Clap #2570

jakobneufeld opened this issue Jul 6, 2021 · 1 comment

Comments

@jakobneufeld
Copy link

Please complete the following tasks

  • I have searched the discussions
  • I have searched the existing issues

Clap Version

master

Describe your use case

I am writing a configuration cli, and I want that when an option is not passed, it prompts you for it. I am porting my cli from Clikt (kotkin) to rust because clikt is slow.

Describe the solution you'd like

like in clickt, when you define an option, you can say that when you do not provide the option, it prompts you for it. If this feature is not added in clap, could you give me a workaround please.

Alternatives, if applicable

No response

Additional Context

No response

@pksunkara
Copy link
Member

Have you really searched the existing issues? What terms did you use for searching?

#1634

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants