Prompt for missing values for required options #2383
-
Today, when you run a command and haven't specified a required option, the command will fail with an error. What if instead, we'd show a prompt allowing you to specify a value? It would be more user-friendly than just failing with an error and showing help. In some commands we offer the user an option to specify one of the few options, like We could expose this behavior behind an option, in case you use CLI in a script and don't want the script to get stuck on a prompt that you wouldn't be able to respond to. What do you think, would this be worth the effort? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
I recon that is what PowerShell does right? When you execute something without parameters it replies with the required ones as well. Definitely makes sense! We could start with a version that only does the required parameters and grow from there. |
Beta Was this translation helpful? Give feedback.
-
it's a bit like UI in command CLI 😋... only joking... I like it 👍 I would like to work on it even 😅 |
Beta Was this translation helpful? Give feedback.
I recon that is what PowerShell does right? When you execute something without parameters it replies with the required ones as well. Definitely makes sense! We could start with a version that only does the required parameters and grow from there.