install.sh: unknown flags are silently ignored #873

Closed
opened 2026-10-27 13:38:06 +00:00 by sam · 0 comments
Owner

The 'for arg in $@' case statement has no default branch, so a mistyped flag does nothing and the installer proceeds with defaults. '--no-systmd' installs the systemd service the user was trying to skip. Options discussed 2026-07-30: (a) reject unknown args with exit 1; (b) warn on stderr and continue; (c) reject unknown --flags but ignore bare words. Recommendation was (a) -- this is an interactive installer run by hand, typos dominate, and silent wrong behaviour is the worst outcome; the forward-compatibility argument for (b) does not apply while there is no ecosystem of wrapper scripts. Awaiting Sam's decision.

Acceptance Criteria

A mistyped flag produces a clear diagnostic rather than silently different behaviour. The chosen policy is applied consistently and reflected in --help.


Imported from beads archie-core-1786637498781-340-929108e6 · GitHub #361 · type bug · priority P2 · created 2026-08-08 · closed 2026-08-08

The 'for arg in $@' case statement has no default branch, so a mistyped flag does nothing and the installer proceeds with defaults. '--no-systmd' installs the systemd service the user was trying to skip. Options discussed 2026-07-30: (a) reject unknown args with exit 1; (b) warn on stderr and continue; (c) reject unknown --flags but ignore bare words. Recommendation was (a) -- this is an interactive installer run by hand, typos dominate, and silent wrong behaviour is the worst outcome; the forward-compatibility argument for (b) does not apply while there is no ecosystem of wrapper scripts. Awaiting Sam's decision. ### Acceptance Criteria A mistyped flag produces a clear diagnostic rather than silently different behaviour. The chosen policy is applied consistently and reflected in --help. --- _Imported from beads `archie-core-1786637498781-340-929108e6` · GitHub #361 · type bug · priority P2 · created 2026-08-08 · closed 2026-08-08_
sam added the mediumbug labels 2026-10-27 13:38:06 +00:00
sam self-assigned this 2026-10-27 13:38:06 +00:00
sam closed this issue 2026-10-27 13:38:06 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#873