[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:
It should be Bash(git:*).
Steps to Reproduce
- Open a terminal.
- Run the command:
claude --help - Examine the help text provided for the
--allowedToolsand--disallowedToolsoptions, specifically the examples usingBash(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:
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗