Skip to content

Reject unknown flags instead of ignoring them - #17

Merged
raj-khan merged 1 commit into
mainfrom
reject-unknown-flags
Oct 23, 2026
Merged

raj-khan merged 1 commit into
mainfrom
reject-unknown-flags

Conversation

@raj-khan

Copy link
Copy Markdown
Contributor

A mistyped flag was silently ignored: clean --keep-alert deleted the alerts it meant to keep, and init --froce reported "already initialized". Each command now rejects flags and arguments it does not take, with the help text. The internal hook and session-start commands are exempt, since a hook must never fail.

A typo like clean --keep-alert was ignored and deleted the record it meant to keep.
@raj-khan
raj-khan merged commit eb133e6 into main Oct 23, 2026
1 check passed
@raj-khan raj-khan mentioned this pull request Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant