proper debug handling
This commit is contained in:
@@ -45,14 +45,16 @@ public class SimpleLoadingBar extends AbstractProgressBar {
|
||||
} else {
|
||||
startTime = firstTime;
|
||||
}
|
||||
boolean debug = false;
|
||||
boolean passedMinutesZero = false;
|
||||
if (args.length == 2 || !title.isBlank()) {
|
||||
new SimpleLoadingBar(startTime, endTime, title).showLoadingBar();
|
||||
new SimpleLoadingBar(startTime, endTime, title).showLoadingBar(debug, passedMinutesZero);
|
||||
return;
|
||||
}
|
||||
// if there are 3 arguments, the third will be discarded.
|
||||
boolean hasTitleArg = args.length > 3 && "-msg".equals(args[2]);
|
||||
title = hasTitleArg ? args[3] : title;
|
||||
new SimpleLoadingBar(startTime, endTime, title).showLoadingBar();
|
||||
new SimpleLoadingBar(startTime, endTime, title).showLoadingBar(debug, passedMinutesZero);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user