@@ -60,9 +60,8 @@ public int run() {
6060
6161 boolean hasRequired = false ;
6262 console .info ("\n Usage: {} [general options] {} {} [command options]" ,
63- new Object [] {
64- programName , cmd ,
65- commander .getMainParameterDescription ()});
63+ programName , cmd ,
64+ commander .getMainParameterDescription ());
6665 console .info ("\n Description:" );
6766 console .info ("\n {}" , jc .getCommandDescription (cmd ));
6867 if (!commander .getParameters ().isEmpty ()) {
@@ -82,8 +81,7 @@ public int run() {
8281 // comment
8382 console .info ("\n {}" , example );
8483 } else {
85- console .info (" {} {} {}" ,
86- new Object [] {programName , cmd , example });
84+ console .info (" {} {} {}" , programName , cmd , example );
8785 }
8886 }
8987 }
@@ -121,11 +119,11 @@ public void printGenericHelp() {
121119 private boolean printOption (Logger console , ParameterDescription param ) {
122120 boolean required = param .getParameter ().required ();
123121 if (!param .getParameter ().hidden ()) {
124- console .info (" {} {}\n \t {}{}" , new Object []{
122+ console .info (" {} {}\n \t {}{}" ,
125123 required ? "*" : " " ,
126124 param .getNames ().trim (),
127125 param .getDescription (),
128- formatDefault (param )} );
126+ formatDefault (param ));
129127 }
130128 return required ;
131129 }
0 commit comments