diff --git a/src/vs/platform/environment/node/argv.ts b/src/vs/platform/environment/node/argv.ts index 0e5502fb67a..9f0f6e5bb06 100644 --- a/src/vs/platform/environment/node/argv.ts +++ b/src/vs/platform/environment/node/argv.ts @@ -209,8 +209,8 @@ export function parseArgs(args: string[], options: OptionDescriptions, err const firstArg = args.find(a => a.length > 0 && a[0] !== '-'); const alias: { [key: string]: string } = {}; - const string: string[] = ['_']; - const boolean: string[] = []; + const stringOptions: string[] = ['_']; + const booleanOptions: string[] = []; const globalOptions: OptionDescriptions = {}; let command: Subcommand | undefined = undefined; for (const optionId in options) { @@ -225,14 +225,14 @@ export function parseArgs(args: string[], options: OptionDescriptions, err } if (o.type === 'string' || o.type === 'string[]') { - string.push(optionId); + stringOptions.push(optionId); if (o.deprecates) { - string.push(...o.deprecates); + stringOptions.push(...o.deprecates); } } else if (o.type === 'boolean') { - boolean.push(optionId); + booleanOptions.push(optionId); if (o.deprecates) { - boolean.push(...o.deprecates); + booleanOptions.push(...o.deprecates); } } if (o.global) { @@ -255,7 +255,7 @@ export function parseArgs(args: string[], options: OptionDescriptions, err // remove aliases to avoid confusion - const parsedArgs = minimist(args, { string, boolean, alias }); + const parsedArgs = minimist(args, { string: stringOptions, boolean: booleanOptions, alias }); const cleanedArgs: any = {}; const remainingArgs: any = parsedArgs;