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

Allow a comma-separate list of dir-codes to be passed to -dir option

parent b18c66fa
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ for(var i = 0; i < argc; i++) { ...@@ -52,7 +52,7 @@ for(var i = 0; i < argc; i++) {
writeln(" -all add files in all libraries/directories (implies -auto)"); writeln(" -all add files in all libraries/directories (implies -auto)");
writeln(" -lib=<name> add files in all directories of specified library (implies -auto)"); writeln(" -lib=<name> add files in all directories of specified library (implies -auto)");
writeln(" -auto add files only to directories that have Auto-ADDFILES enabled"); writeln(" -auto add files only to directories that have Auto-ADDFILES enabled");
writeln(" -dir=<code> add files in directory (can be specified multiple times)"); writeln(" -dir=<code,...> add files in directories (can be specified multiple times)");
writeln(" -from=<name> specify uploader's user name (may require quotes)"); writeln(" -from=<name> specify uploader's user name (may require quotes)");
writeln(" -file=<name> specify files to add (wildcards supported, default: *)"); writeln(" -file=<name> specify files to add (wildcards supported, default: *)");
writeln(" -ex=<filename> add to excluded filename list"); writeln(" -ex=<filename> add to excluded filename list");
...@@ -89,7 +89,7 @@ for(var i = 0; i < argc; i++) { ...@@ -89,7 +89,7 @@ for(var i = 0; i < argc; i++) {
continue; continue;
} }
if(opt.indexOf("dir=") == 0) { if(opt.indexOf("dir=") == 0) {
dir_list.push(opt.slice(4)); dir_list.push.apply(dir_list, opt.slice(4).split(','));
continue; continue;
} }
if(opt.indexOf("file=") == 0) { if(opt.indexOf("file=") == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment