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

Error when value is null #83

Open
wideti opened this issue Mar 7, 2018 · 0 comments
Open

Error when value is null #83

wideti opened this issue Mar 7, 2018 · 0 comments

Comments

@wideti
Copy link

wideti commented Mar 7, 2018

When the value assigned to the key is NULL, an exception is thrown: 'Unable to parse option XX Expected an argument'. Instead of returning an exception, I consider the set of values from the 'default' for the option.

So, if it has a default value this is considered, otherwise consider the $val value itself.

wideti pushed a commit to wideti/commando that referenced this issue Mar 7, 2018
…returning an exception, I consider the value set of the 'default' for the option.
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

1 participant