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

Improve error message when CLI option doesn't exist #2920

Closed
jcamiel opened this issue Jun 13, 2024 · 0 comments · Fixed by #2961
Closed

Improve error message when CLI option doesn't exist #2920

jcamiel opened this issue Jun 13, 2024 · 0 comments · Fixed by #2961
Labels
bug Something isn't working
Milestone

Comments

@jcamiel
Copy link
Collaborator

jcamiel commented Jun 13, 2024

When using a non existing CLI option:

$ hurl --foo
error: error: unexpected argument '--foo' found

  tip: to pass '--foo' as a value, use '-- --foo'

Usage: hurl [OPTIONS] [FILES]...

For more information, try '--help'.

The error message is error: error: unexpected argument '--foo' found (error is duplicated twice)

@jcamiel jcamiel added the enhancement New feature or request label Jun 13, 2024
@jcamiel jcamiel added this to the 5.0.0 milestone Jun 19, 2024
@jcamiel jcamiel linked a pull request Jun 24, 2024 that will close this issue
@jcamiel jcamiel added bug Something isn't working and removed enhancement New feature or request labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant