Add check for missing parameter of the -e/--export-var option.

This commit is contained in:
David Majda 2011-01-26 13:52:39 +01:00
parent 8f005c027b
commit 957b96c1b5

View file

@ -70,6 +70,9 @@ while (args.length > 0 && isOption(args[0])) {
case "-e":
case "--export-var":
nextArg();
if (args.length === 0) {
abort("Missing parameter of the -e/--export-var option.");
}
exportVar = args[0];
break;