navi-code CLI: make -h show help instead of sending it to the model
The CLI uses ignore_unknown_options=True so a prompt can contain flag-like
text, but that also meant the short -h flag was not recognized as the help
flag — it fell through to the PROMPT argument and was sent to Navi as a
message ("you've asked for help again..."). --help already worked because
Click auto-generates the long form.

Add help_option_names=["-h", "--help"] to context_settings so -h is a known
help option, parsed before the ignore-unknown fallback.

Test: -h via CliRunner exits 0 and shows usage. 577 passed, 1 skipped.

Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e89107d commit 8e862cb38b2d6248e5beae79cc031db6024859c9
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored 1 day ago
Showing 2 changed files
View
clients/terminal/cli.py
View
tests/clients/test_terminal_client.py