Single-dash -dangerously-skip-permissions is silently ignored instead of erroring

Resolved 💬 3 comments Opened Mar 26, 2026 by brucephenry Closed Mar 30, 2026

Description

When launching Claude Code with a single dash instead of double dash:

claude -dangerously-skip-permissions

...the flag appears to be silently ignored rather than:

  1. Producing an error/warning that the flag is malformed, or
  2. Being treated the same as --dangerously-skip-permissions

Expected behavior

The CLI should either:

  • Reject the malformed flag with a clear error message (e.g. Unknown flag: -dangerously-skip-permissions. Did you mean --dangerously-skip-permissions?), or
  • Accept it consistently with the double-dash form (less preferred for a security-sensitive flag)

Silent acceptance of a malformed version of a security-bypassing flag is particularly concerning — a user may believe they have enabled --dangerously-skip-permissions when they have not (or vice versa).

Steps to reproduce

claude -dangerously-skip-permissions

Observe that no error is shown and Claude starts normally without any indication the flag was unrecognized.

Why it matters

--dangerously-skip-permissions bypasses all tool approval prompts. A user who mistypes it with a single dash gets no feedback that the flag was ignored. Silent failure on security-relevant flags is a poor UX and could cause confusion about the actual permission mode in effect.

🤖 Raised via Claude Code

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗