Feature request: provide default value for option (and show it in the help)
See original GitHub issueApologies if I’ve missed this one. I see in the examples you’re using conditionals to set default values, but what about providing something like
[Option(Description = "Verbosity",DefaultValue = 5)]
so when an option is not required a default value is supplied - this could also be reflected in the help text so we’re following the Principle of Least Astonishment.
Issue Analytics
- State:
- Created 5 years ago
- Comments:19 (14 by maintainers)
Top Results From Across the Web
provide default value for option (and show it in the help)
Apologies if I've missed this one. I see in the examples you're using conditionals to set default values, but what about providing something...
Read more >Default value in forms - Feature Requests - Glide Community
The default value could be an option like the placeholder text in features. ... I suggest you add them to the feature request...
Read more >Set a default value for a custom property
Hi friends!! I have a custom property as a dropdown select which now it's binary (we don't know if it will handle other...
Read more >Feature request: default value in Lookup fields
I would like to be able to give a lookup field a default value, so that the user can tab straight over it...
Read more >Set a Default Value for Any Screen Component That ...
For example, to set the default value to both "Red" and "Blue", enter Red;Blue . At run time, we preselect every choice option...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@natemcmaster First thank you for this library, its really helpful.
Regarding Default values, since this is in beta, I think the sample code at the front page shouldn’t include
DefaultValue
or at least add a comment saying that its in beta, to not confuse users.This issue is resolved and available now in this beta: https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/4.0.0-beta.56. Please take a look and let me know if you have feedback on its behavior.