Improvements to oputil

* Major update to --help
* '2fa' is now '2fa-otp' or just 'otp'
* Better 2fa-otp output & handling
This commit is contained in:
Bryan Ashby 2019-05-11 00:21:42 -06:00
parent 6953cdf159
commit d215919bff
No known key found for this signature in database
GPG key ID: B49EB437951D2542
3 changed files with 180 additions and 97 deletions

View file

@ -209,7 +209,7 @@ function scanFileAreaForChanges(areaInfo, options, cb) {
async.series(
[
function quickCheck(next) {
if(!options.quick) {
if(options['full-scan']) {
return next(null);
}
@ -476,8 +476,8 @@ function scanFileAreas() {
options.tags = tags.split(',');
}
options.descFile = argv['desc-file']; // --desc-file or --desc-file PATH
options.quick = argv.quick;
options.descFile = argv['desc-file']; // --desc-file or --desc-file PATH
options['full-scan'] = argv['-full-scan'];
options.areaAndStorageInfo = getAreaAndStorage(argv._.slice(2));