Add check for missing parameter of the -e/--export-var option.
This commit is contained in:
parent
8f005c027b
commit
957b96c1b5
|
@ -70,6 +70,9 @@ while (args.length > 0 && isOption(args[0])) {
|
||||||
case "-e":
|
case "-e":
|
||||||
case "--export-var":
|
case "--export-var":
|
||||||
nextArg();
|
nextArg();
|
||||||
|
if (args.length === 0) {
|
||||||
|
abort("Missing parameter of the -e/--export-var option.");
|
||||||
|
}
|
||||||
exportVar = args[0];
|
exportVar = args[0];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue