Orange-OpenSource / hurl

Hurl, run and test HTTP requests with plain text.
https://hurl.dev
Apache License 2.0
12.56k stars 473 forks source link

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

Closed jcamiel closed 2 months ago

jcamiel commented 2 months ago

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)