Single-dash -dangerously-skip-permissions silently enables debug mode

Status Closed — duplicate
Reported on v2.1.37
Maintainer reply None cached
Activity 3 comments · opened Feb 9, 2026 · closed Feb 13, 2026

Bug

Running Claude Code with a single dash:

claude -dangerously-skip-permissions

instead of the correct double dash:

claude --dangerously-skip-permissions

causes the session to launch in debug mode (and presumably doesn't actually skip permissions either).

Likely cause

The CLI arg parser interprets -dangerously-skip-permissions as a series of short flags (-d, -a, -n, -g, etc.). One of these single-character flags (likely -d) maps to debug mode.

Expected behavior

Claude Code should either:

  1. Recognize the typo and suggest the correct -- prefix, or
  2. Reject the unrecognized flag with a clear error message

Environment

  • Claude Code version: 2.1.37
  • Platform: macOS (Darwin 23.4.0)

Notes

Other users have reported the same confusion on forums — entering debug mode unexpectedly without knowing why.

View original on GitHub ↗

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