Update extensions/cli/src/args.ts

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Nate Sesti 2025-08-24 18:40:25 -07:00 • committed by GitHub
parent 239895f606
commit c17cdff2e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,7 @@ function extractSingleFlag(
flagName: string,
): string | undefined {
const index = args.indexOf(flagName);
if (index !== -1 && index + 1 < args.length) {
if (index !== -1 && index + 1 < args.length && !args[index + 1].startsWith("--")) {
return args[index + 1];
}
return undefined;