-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
f:promptfeature: prompt for inputfeature: prompt for input
Milestone
Description
Hi -
I am working on a ticket for mycli - the gist is that the team wants the '-p' flag to behave like th e mysql client - i.e. prompt if you don't pass an arg, but it is not required so do NOT prompt if the -p is not included. Today if I use standard click->prompt then scenario 2 gives an error. Below is the desired behavior:
- $> ./hello
HELLO WORLD - $> ./hello -p
Please enter your password: - $> ./hello -p s3cr3t
HELLO WORLD
It appears looking at the code there is no way to do this, but it seems desirable - before working on a PR I wanted to validate that it can't be done and get input on the usefulness of the feature.
Thanks for your guidance
John
amjith, porcupie, redodo and tsroten
Metadata
Metadata
Assignees
Labels
f:promptfeature: prompt for inputfeature: prompt for input