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 support for type=number in option flags for numerical validation #35

Merged
merged 4 commits into from
Sep 25, 2019

Conversation

jacobdeichert
Copy link
Owner

Which issue does this fix?

Closes #3

Describe the solution

If an option's flag has type: number, we now try to parse it as an integer or float for validation. If both fail, we exit with an error message.

How to test

  • Added unit tests
  • Added integration tests

Types of changes

  • Bug fix
  • New feature
  • Breaking change

@jacobdeichert jacobdeichert merged commit f46b08e into master Sep 25, 2019
@jacobdeichert jacobdeichert deleted the validate-numerical-flag branch April 4, 2020 15:26
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

Successfully merging this pull request may close these issues.

Add number type to options for input validation purposes
1 participant