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

CLI: Add an error for option with missing value #37

Closed
ee7 opened this issue Oct 10, 2020 · 0 comments · Fixed by #26
Closed

CLI: Add an error for option with missing value #37

ee7 opened this issue Oct 10, 2020 · 0 comments · Fixed by #26
Labels
kind: bug User-facing incorrect behavior

Comments

@ee7
Copy link
Member

ee7 commented Oct 10, 2020

Examples

canonical_data_syncer --verbosity
canonical_data_syncer --default
canonical_data_syncer -e

Current behaviour

The program silently ignores the missing value and performs the "sync" behaviour with the default options.

Expected behaviour

We should show an error like

Error: '--verbosity' was given without a value
Error: '--default' was given without a value
Error: '-e' was given without a value

And show the help message.

ee7 added a commit to ee7/exercism-configlet that referenced this issue Oct 12, 2020
For example, the command:
  `canonical_data_syncer --verbosity`

Now produces:
  Error: '--verbosity' was given without a value

And shows the help message.

Previously, the program silently ignored the missing value.

Fixes: exercism#37
ee7 added a commit to ee7/exercism-configlet that referenced this issue Jan 21, 2021
For example, the command:
  `canonical_data_syncer --verbosity`

Now produces:
  Error: '--verbosity' was given without a value

And shows the help message.

Previously, the program silently ignored the missing value.

Fixes: exercism#37
@ee7 ee7 added the kind: bug User-facing incorrect behavior label May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug User-facing incorrect behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant