Minor fixes to oputil

This commit is contained in:
Bryan Ashby 2017-02-20 11:46:18 -07:00
parent 0ca2ca9bf2
commit 72b0eafc7b
3 changed files with 12 additions and 7 deletions

View file

@ -280,7 +280,7 @@ function getMsgAreaImportType(path) {
function importAreas() {
const importPath = argv._[argv._.length - 1];
if(!importPath) {
if(argv._.length < 3 || !importPath || 0 === importPath.length) {
return printUsageAndSetExitCode(getHelpFor('Config'), ExitCodes.ERROR);
}