Minor fixes to oputil
This commit is contained in:
parent
0ca2ca9bf2
commit
72b0eafc7b
|
@ -280,7 +280,7 @@ function getMsgAreaImportType(path) {
|
||||||
|
|
||||||
function importAreas() {
|
function importAreas() {
|
||||||
const importPath = argv._[argv._.length - 1];
|
const importPath = argv._[argv._.length - 1];
|
||||||
if(!importPath) {
|
if(argv._.length < 3 || !importPath || 0 === importPath.length) {
|
||||||
return printUsageAndSetExitCode(getHelpFor('Config'), ExitCodes.ERROR);
|
return printUsageAndSetExitCode(getHelpFor('Config'), ExitCodes.ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,17 +37,22 @@ valid args:
|
||||||
|
|
||||||
where <action> is one of:
|
where <action> is one of:
|
||||||
new : generate a new/initial configuration
|
new : generate a new/initial configuration
|
||||||
import-na [CONF_TAG] : import fidonet *.NA file
|
import-areas PATH : import areas using fidonet *.NA or AREAS.BBS file from PATH
|
||||||
if CONF_TAG is not supplied, it will be prompted for
|
|
||||||
|
valid import-areas <args>:
|
||||||
|
--conf CONF_TAG : specify conference tag in which to import areas
|
||||||
|
--network NETWORK : specify network name/key to associate FTN areas
|
||||||
|
--uplinks UL1,UL2,... : specify one or more comma separated uplinks
|
||||||
|
--type TYPE : specifies area import type. valid options are "bbs" and "na"
|
||||||
`,
|
`,
|
||||||
FileBase :
|
FileBase :
|
||||||
`usage: oputil.js fb <action> [<args>] <AREA_TAG|SHA|FILE_ID[@STORAGE_TAG] ...> [<args>]
|
`usage: oputil.js fb <action> [<args>] <AREA_TAG|SHA|FILE_ID[@STORAGE_TAG] ...> [<args>]
|
||||||
|
|
||||||
where <action> is one of:
|
where <action> is one of:
|
||||||
scan AREA_TAG|SHA|FILE_ID : scan specified areas
|
scan AREA_TAG : scan specified areas
|
||||||
AREA_TAG may be suffixed with @STORAGE_TAG; for example: retro@bbs
|
AREA_TAG may be suffixed with @STORAGE_TAG; for example: retro@bbs
|
||||||
|
|
||||||
info AREA_TAG|FILE_ID|SHA : display information about areas and/or files
|
info AREA_TAG|SHA|FILE_ID : display information about areas and/or files
|
||||||
SHA may be a full or partial SHA-256
|
SHA may be a full or partial SHA-256
|
||||||
|
|
||||||
valid scan <args>:
|
valid scan <args>:
|
||||||
|
|
|
@ -39,6 +39,6 @@ module.exports = function() {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return printUsageAndSetExitCode('', ExitCodes.BAD_COMMAND);
|
return printUsageAndSetExitCode(getHelpFor('General'), ExitCodes.BAD_COMMAND);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue