mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-24 19:48:23 +02:00
Minor fixes to oputil
This commit is contained in:
parent
0ca2ca9bf2
commit
72b0eafc7b
3 changed files with 12 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue