Skip to content

feat(init): accept multiple delimiter formats for --features flag#386

Merged
betegon merged 5 commits intomainfrom
feat/flexible-features-flag
Mar 10, 2026
Merged

feat(init): accept multiple delimiter formats for --features flag#386
betegon merged 5 commits intomainfrom
feat/flexible-features-flag

Conversation

@betegon
Copy link
Member

@betegon betegon commented Mar 10, 2026

Summary

Makes --features more flexible per @BYK's review feedback. Now accepts:

  • Comma: --features errors,tracing,logs
  • Plus: --features errors+tracing+logs
  • Space (quoted): --features "errors tracing logs"
  • Repeated: --features errors --features tracing
  • Mixed: --features errors,tracing --features logs

The flag is now variadic (collects multiple values into an array) with a regex split on ,, +, and space delimiters.

Changes

  • Flag type changed from string to string[] with variadic: true
  • Parsing uses flatMap + regex split across all entries
  • Updated brief to drop "Comma-separated" prefix
  • Added tests for plus, space, and repeated flag scenarios

Test plan

  • bun run typecheck passes
  • bun run lint passes
  • bun test test/commands/init.test.ts — 10/10 pass

🤖 Generated with Claude Code

Allow comma, plus, and space as delimiters, support repeated
--features flags (variadic), and add --feature as a singular alias.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 10, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Init

  • Accept multiple delimiter formats for --features flag by betegon in #386
  • Accept multiple delimiter formats for --features flag by betegon in #386
  • Add git safety checks before wizard modifies files by betegon in #379
  • Add experimental warning before wizard runs by betegon in #378
  • Add init command for guided Sentry project setup by betegon in #283

Other

  • (issue-list) Redesign table to match Sentry web UI by BYK in #372
  • Return-based output with OutputConfig on buildCommand by BYK in #380
  • Add --fields flag for context-window-friendly JSON output by BYK in #373
  • Magic @ selectors (@latest, @most_frequent) for issue commands by BYK in #371
  • Input hardening against agent hallucinations by BYK in #370
  • Add response caching for read-only API calls by BYK in #330

Bug Fixes 🐛

Init

  • Remove implementation detail from help text by betegon in #385
  • Truncate uncommitted file list to first 5 entries by MathurAditya724 in #381

Other

  • (api) Convert --data to query params for GET requests by BYK in #383
  • (docs) Remove double borders and fix column alignment on landing page tables by betegon in #369
  • Add trace ID validation to trace view + UUID dash-stripping by BYK in #375

Internal Changes 🔧

Init

  • Remove --force flag by betegon in #377
  • Remove dead determine-pm step label by betegon in #374

Other

  • Converge Tier 1 commands to writeOutput helper by BYK in #376

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 10, 2026

Codecov Results 📊

104 passed | Total: 104 | Pass Rate: 100% | Execution Time: 0ms

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 899 uncovered lines.
✅ Project coverage is 95.48%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    95.48%    95.48%        —%
==========================================
  Files          142       142         —
  Lines        19898     19901        +3
  Branches         0         0         —
==========================================
+ Hits         18999     19002        +3
- Misses         899       899         —
- Partials         0         0         —

Generated by Codecov Action

@betegon betegon marked this pull request as ready for review March 10, 2026 18:25
betegon and others added 3 commits March 10, 2026 19:34
Stricli aliases must be single characters. The `feature: "features"` alias
would be interpreted as batched single-char flags `-f -e -a -t -u -r -e`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Apply PR suggestion: "You can visit" instead of "Visit" for a friendlier tone.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@betegon betegon merged commit 5b891fc into main Mar 10, 2026
21 checks passed
@betegon betegon deleted the feat/flexible-features-flag branch March 10, 2026 18: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