Skip to content

Commit

Permalink
Recommend '-h' on error
Browse files Browse the repository at this point in the history
The help is great, but not everyone might know to look there.
  • Loading branch information
raboof committed Jun 24, 2024
1 parent 061b3ae commit 427f574
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cvelib/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def wrapped(*args: Any, **kwargs: Any) -> Callable:
click.echo("CVE record is not valid against the v5 JSON schema:")
for error in exc.errors:
click.echo(f" {error}")
click.echo("\nUse `cve <command> -h` for more information on how to use this command")
sys.exit(1)

return wrapped
Expand Down

0 comments on commit 427f574

Please sign in to comment.