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