proper debug handling

This commit is contained in:
2025-08-26 09:45:41 +02:00
parent fd81d268c1
commit a664f42f97

View File

@@ -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);
}