Comparing version 2.0.5 to 2.0.6
@@ -25,3 +25,3 @@ "use strict"; | ||
} | ||
if (arg == null) { | ||
if (arg == null || arg === '') { | ||
if (option.required) { | ||
@@ -28,0 +28,0 @@ throw new cmd_args_1.ParseError(option.type === 'env' |
{ | ||
"name": "cmd-args", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "A simple command-line argument parser for NodeJS command-line tools.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cmd-args.js", |
@@ -30,3 +30,3 @@ import { CommandInternal, ParsedOptions } from './types' | ||
if (arg == null) { | ||
if (arg == null || arg === '') { | ||
if (option.required) { | ||
@@ -33,0 +33,0 @@ throw new ParseError( |
Sorry, the diff of this file is not supported yet
67548