Skip to content

refactor!: standardize all CLI arg names to kebab-case#150

Merged
jackwener merged 2 commits intomainfrom
refactor/standardize-arg-naming
Mar 20, 2026
Merged

refactor!: standardize all CLI arg names to kebab-case#150
jackwener merged 2 commits intomainfrom
refactor/standardize-arg-naming

Conversation

@jackwener
Copy link
Owner

BREAKING CHANGE: Standardize all CLI argument names to kebab-case. keyword->query (11 cmds), bookId->book-id, productId->product-id, post_id->post-id, job_id->job-id, tweet_id->tweet-id, note_id->note-id, security_id->security-id, model_name->model-name, max_length->max-length, experience_level->experience-level, job_type->job-type, date_posted->date-posted. 36 renames across 32 files. Verified: tsc + 244 tests + 0 non-kebab args.

BREAKING CHANGE: All CLI argument names have been renamed for consistency.

Renames:
- keyword -> query (11 search commands)
- bookId -> book-id (weread)
- productId -> product-id (coupang)
- post_id -> post-id (reddit)
- job_id -> job-id (boss)
- tweet_id -> tweet-id (twitter)
- note_id -> note-id (xiaohongshu)
- security_id -> security-id (boss)
- model_name -> model-name (chatwise/codex/cursor)
- max_length -> max-length (reddit)
- experience_level -> experience-level (linkedin)
- job_type -> job-type (linkedin)
- date_posted -> date-posted (linkedin)

36 renames across 32 files. All 240 commands now use kebab-case.
BREAKING CHANGE: Required "subject" args are now positional.

Rules applied:
- query, id, text, url, username → positional (when required)
- output → always --named

Also fixes engine.ts YAML arg parser to support positional property.

50 changes across 49 files. All 240 commands verified consistent.
@jackwener jackwener merged commit d7c8955 into main Mar 20, 2026
12 checks passed
@jackwener jackwener deleted the refactor/standardize-arg-naming branch March 20, 2026 17:53
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.

1 participant