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:
parent
239895f606
commit
c17cdff2e9
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue