Commit a6c0bec
fix: resolve duplicate option registration in export and import commands
The `export` and `import` commands each registered the same required
option twice (once for gemini, once for codex), causing commander to
throw on startup and making the entire CLI unusable.
Additionally, `case 'codex'` was placed inside the `default` branch
in both switch statements, so it could never be matched correctly.
Changes:
- Merge duplicate `.requiredOption()` calls into a single call listing
all supported formats
- Move `case 'codex'` out of `default` as an independent case with
its own `break`
Fixes #53
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 24ed359 commit a6c0bec
2 files changed
+10
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 82 | + | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
525 | | - | |
| 524 | + | |
526 | 525 | | |
527 | 526 | | |
528 | 527 | | |
| |||
549 | 548 | | |
550 | 549 | | |
551 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
552 | 554 | | |
553 | 555 | | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
| 556 | + | |
558 | 557 | | |
559 | 558 | | |
560 | 559 | | |
| |||
0 commit comments