Skip to content

Remove -j short alias for --json option#146

Merged
jancurn merged 2 commits intomainfrom
claude/remove-j-option-S8fsn
Apr 7, 2026
Merged

Remove -j short alias for --json option#146
jancurn merged 2 commits intomainfrom
claude/remove-j-option-S8fsn

Conversation

@jancurn
Copy link
Copy Markdown
Member

@jancurn jancurn commented Apr 7, 2026

Summary

This PR removes the -j short alias for the --json option across the CLI, standardizing on the long-form --json flag only.

Key Changes

  • Removed -j short alias from all --json option definitions in:
    • Top-level program options (src/cli/index.ts)
    • Session program options (src/cli/index.ts)
    • X402 command options (src/cli/commands/x402.ts)
    • Dynamic command registration in help generation (src/cli/index.ts)
  • Removed test case validating -j as an alias for --json (test/e2e/suites/basic/output-invariants.test.sh)
  • Updated README.md to reflect the removal of the -j alias in the options documentation

Implementation Details

The change is consistent across all CLI entry points and command definitions. Users will now need to use the explicit --json flag instead of the shorter -j variant. This simplifies the CLI interface and reduces potential confusion from multiple ways to invoke the same option.

https://claude.ai/code/session_01RVYtJksXkt51L6nuaQYzGo

claude added 2 commits April 7, 2026 21:45
The -j shorthand is non-standard and redundant. Keep only the
long-form --json option across all command definitions.

https://claude.ai/code/session_01RVYtJksXkt51L6nuaQYzGo
The auto-generated help section was empty after rebase. Regenerated
it with the correct alignment after removing the -j alias.

https://claude.ai/code/session_01RVYtJksXkt51L6nuaQYzGo
@jancurn jancurn merged commit 0db8272 into main Apr 7, 2026
6 checks passed
@jancurn jancurn deleted the claude/remove-j-option-S8fsn branch April 7, 2026 22:29
jancurn pushed a commit that referenced this pull request Apr 7, 2026
- CHANGELOG: keep auto-generate session names entry + main's new entries
- README/index.ts: take main's --json (removed -j alias from PR #146)
- index.ts: combine session name help text with main's jsonHelp() output

https://claude.ai/code/session_01SRw2NArnxDKmgZLrNL72c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants