Skip to content

Commit

Permalink
Merge pull request #83311 from featherbear/argv_noargs
Browse files Browse the repository at this point in the history
Change checks for present command line arguments
  • Loading branch information
aeschli authored Oct 25, 2019
2 parents 6c3cfaf + e86aa62 commit f2c1232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/platform/environment/node/argv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export function parseArgs<T>(args: string[], options: OptionDescriptions<T>, err
delete parsedArgs[o.deprecates];
}

if (val) {
if (typeof val !== 'undefined') {
if (o.type === 'string[]') {
if (val && !Array.isArray(val)) {
val = [val];
Expand Down

0 comments on commit f2c1232

Please sign in to comment.