You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test.js
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,8 @@ const optionDefinitions = [
25
25
{name: 'wip',alias: 'w',type: Boolean},
26
26
{name: 'specific',alias: 's',type: Boolean},
27
27
{name: 'input',alias: 'i',type: String},
28
-
{name: 'file',alias: 'f',type: Boolean}
28
+
{name: 'file',alias: 'f',type: Boolean},
29
+
{name: 'progressbar',alias: 'p',type: Boolean}
29
30
]
30
31
31
32
constoptions=commandLineArgs(optionDefinitions)
@@ -40,8 +41,13 @@ if (options.file){
40
41
inquirerprompt.setShowfilename(true);
41
42
}
42
43
44
+
//if p flag is set it turns off the progressbar
45
+
if(options.progressbar){
46
+
inquirerprompt.turnoffprogressbar(true);
47
+
}
48
+
43
49
if(options.help){
44
-
log.info("HELP: Your possibilities for the input: \n -h or --help for Help \n -f: to log all filenames, which get tested \n -a: for testing everything (including files, which aren't tutorials) \n -w & -t: for testing every tutorial in both folders \n -w: for testing all files in the work-in-progress folder \n -t: for testing all files in the tutorials folder \n -s: for dialog to choose specific tutorials \n -i: to give an filename behind with *\n to resctrict the scope: enter -w or/and -t");
50
+
log.info("HELP: Your possibilities for the input: \n -h or --help for Help \n -f: to log all filenames, which get tested \n -a: for testing everything (including files, which aren't tutorials) \n -w & -t: for testing every tutorial in both folders \n -w: for testing all files in the work-in-progress folder \n -t: for testing all files in the tutorials folder \n -s: for dialog to choose specific tutorials \n -i: to give an filename behind with *\n to resctrict the scope: enter -w or/and -t \n -p: to turn off the progressbar ");
0 commit comments