Skip to content

Commit f2c1232

Browse files
authored
Merge pull request #83311 from featherbear/argv_noargs
Change checks for present command line arguments
2 parents 6c3cfaf + e86aa62 commit f2c1232

File tree

1 file changed

+1
-1
lines changed
  • src/vs/platform/environment/node

1 file changed

+1
-1
lines changed

src/vs/platform/environment/node/argv.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export function parseArgs<T>(args: string[], options: OptionDescriptions<T>, err
181181
delete parsedArgs[o.deprecates];
182182
}
183183

184-
if (val) {
184+
if (typeof val !== 'undefined') {
185185
if (o.type === 'string[]') {
186186
if (val && !Array.isArray(val)) {
187187
val = [val];

0 commit comments

Comments
 (0)