[BUG] Incorrect `allowedTools/disallowedTools` pattern syntax in `claude --help` documentation

Resolved 💬 3 comments Opened Apr 28, 2025 by florian-ernst-alan Closed May 28, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [X] Other: Claude CLI
  • Claude CLI version: 0.2.86

Bug Description

The help text generated by claude --help provides incorrect syntax examples for specifying tool patterns within the --allowedTools and --disallowedTools options. The examples omit the required colon (:) for pattern matching within tools like Bash:

!Image

It should be Bash(git:*).

Steps to Reproduce

  1. Open a terminal.
  2. Run the command: claude --help
  3. Examine the help text provided for the --allowedTools and --disallowedTools options, specifically the examples using Bash(git*).

Expected Behavior

The example usage shown in the help text should reflect the correct syntax for specifying tool patterns, which includes a colon (:) separating the tool name from the pattern when applicable. For instance, the example should show Bash(git:*) for matching git commands within the Bash tool.

Actual Behavior

The current help text displays examples like:

!Image

View original on GitHub ↗

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