Commit 63348c3
committed
fix(import): show project context error before --code flag validation
Commander's requiredOption() for --code runs before the action handler,
so users outside a project see "required option not specified" instead
of "no agentcore project found". Change to option() so the handler's
project context check (step 1) runs first. The --code validation at
step 5 still catches missing values after project context is confirmed.
Constraint: Commander validates requiredOption before action handlers execute
Rejected: Moving project check into a Commander hook | adds complexity for one flag
Confidence: high
Scope-risk: narrow1 parent 2bfb3d6 commit 63348c3
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
| 510 | + | |
514 | 511 | | |
515 | 512 | | |
516 | 513 | | |
| |||
0 commit comments