Skip to content

Commit d5a604a

Browse files
fix(cli): use FLAG_TERMINATOR constant instead of hardcoded '--' string
getCommandPathInternal used a hardcoded '--' literal while the FLAG_TERMINATOR constant already exists in cli-root-options.ts. Use the canonical constant for consistency with the rest of the codebase. Co-Authored-By: Claude Opus 4.8 <[email protected]>
1 parent 66b91d7 commit d5a604a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/cli/argv.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ function getCommandPathInternal(
310310
if (!arg) {
311311
continue;
312312
}
313-
if (arg === "--") {
313+
if (arg === FLAG_TERMINATOR) {
314314
break;
315315
}
316316
if (opts.skipRootOptions) {

0 commit comments

Comments
 (0)