Problem
When a user passes an unknown flag or unexpected argument, the error message only states what went wrong:
Error: Unknown option: --verbosse
There is no hint that they can run --help to see valid options. This is especially confusing for new users who mistype a flag.
Expected behaviour
Error: Unknown option: --verbosse
Run `cve-lite --help` to see supported options.
The same hint should appear for Unexpected argument: <value>.
Where to look
src/cli/args.ts — the Unknown option and Unexpected argument throw sites. The outer catch block in src/index.ts already appends the --help hint for argument errors, so this may just need a check that these error messages are routed through that handler correctly, or the hint can be added directly to the throw message.
Acceptance criteria
cve-lite --verbosse prints the error followed by Run \cve-lite --help` to see supported options.`
cve-lite . extra-arg prints the same trailing hint
- Existing tests pass
Problem
When a user passes an unknown flag or unexpected argument, the error message only states what went wrong:
There is no hint that they can run
--helpto see valid options. This is especially confusing for new users who mistype a flag.Expected behaviour
The same hint should appear for
Unexpected argument: <value>.Where to look
src/cli/args.ts— theUnknown optionandUnexpected argumentthrow sites. The outer catch block insrc/index.tsalready appends the--helphint for argument errors, so this may just need a check that these error messages are routed through that handler correctly, or the hint can be added directly to the throw message.Acceptance criteria
cve-lite --verbosseprints the error followed byRun \cve-lite --help` to see supported options.`cve-lite . extra-argprints the same trailing hint