Skip to content
Snippets Groups Projects
Commit 1d0dcbac authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Add support for -v (verbose) option

Displays messages about non-existing files when in verbose mode
parent 3d9f3a92
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -3,6 +3,7 @@
"use strict";
const quiet = argv.indexOf("-q") >= 0;
const verbose = argv.indexOf("-v") >= 0;
function cont(str)
{
......@@ -62,7 +63,7 @@ for(var i in file_list) {
var path = item.dir + item.file;
var count = directory(path).length;
if(count < 1) {
if(!quiet) print(path + format(" (%s)", item.desc) + " does not exist");
if(verbose) print(path + format(" (%s)", item.desc) + " does not exist");
continue;
}
var multi = count > 1 ? format(" (%u files)", count) : "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment