Skip to content
This repository was archived by the owner on Feb 14, 2026. It is now read-only.

fix: correct argument ordering for Claude CLI prompts and commands#168

Open
llampwall wants to merge 1 commit intoslopus:mainfrom
llampwall:fix/claude-args-ordering
Open

fix: correct argument ordering for Claude CLI prompts and commands#168
llampwall wants to merge 1 commit intoslopus:mainfrom
llampwall:fix/claude-args-ordering

Conversation

@llampwall
Copy link

  • Implement --claude-arg flag (was documented in README but not implemented)
  • Move --settings flag before claudeArgs to ensure positional arguments come last
  • Fixes issue where prompts and slash commands were ignored

The bug occurred because claudeArgs were inserted between flags, but Claude CLI expects positional arguments at the end: claude [flags] [prompt]

Changes:

  • src/index.ts: Added --claude-arg flag parsing
  • src/claude/claudeLocal.ts: Reordered args to put --settings before claudeArgs

- Implement --claude-arg flag (was documented in README but not implemented)
- Move --settings flag before claudeArgs to ensure positional arguments come last
- Fixes issue where prompts and slash commands (like /brief) were ignored

The bug occurred because claudeArgs were inserted between flags, but Claude CLI
expects positional arguments at the end: claude [flags] [prompt]

Changes:
- src/index.ts: Added --claude-arg flag parsing
- src/claude/claudeLocal.ts: Reordered args to put --settings before claudeArgs
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant