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

Add default value support #8

Open
seeruk opened this issue Oct 17, 2017 · 1 comment
Open

Add default value support #8

seeruk opened this issue Oct 17, 2017 · 1 comment

Comments

@seeruk
Copy link
Member

seeruk commented Oct 17, 2017

This should be added to both the parameters.Argument and parameters.Option types. This will allow for further automated help-text. The default values will likely be strings, just like regular user input. Unfortunately, that does mean a runtime check will be used to validate it.

@seeruk
Copy link
Member Author

seeruk commented Feb 15, 2018

Maybe we actually just need to make values support returning their zero value somehow so that we can compare the difference between a different default value, and a zero value? This way the existing default value mechanism can be kept (which makes way more sense than forcing people to add strings to structs for any type).

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

No branches or pull requests

1 participant