File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -367,7 +367,8 @@ public static function writeHelpCommand($command = "") {
367367 $ lengthLong = 0 ;
368368 foreach ($ commandOptions as $ option => $ attributes ) {
369369 $ optionShort = (!empty ($ attributes ["optionShort " ][0 ]) && (($ attributes ["optionShort " ][0 ] != "z " ) || ($ attributes ["optionShort " ] != "" ))) ? "|- " .$ attributes ["optionShort " ] : "" ;
370- $ optionList .= "[-- " .$ attributes ["optionLong " ].$ optionShort ."] " ;
370+ $ optionExtra = (!empty ($ attributes ["optionExtra " ])) ? " " .$ attributes ["optionExtra " ] : "" ;
371+ $ optionList .= "[-- " .$ attributes ["optionLong " ].$ optionShort .$ optionExtra ."] " ;
371372 $ lengthLong = ($ attributes ["optionLongLength " ] > $ lengthLong ) ? $ attributes ["optionLongLength " ] : $ lengthLong ;
372373 }
373374
@@ -382,7 +383,7 @@ public static function writeHelpCommand($command = "") {
382383 self ::writeLine ("" );
383384 self ::writeLine ("<h1> " .$ commandLongUC ." Command Options</h1> " ,true ,true );
384385 self ::writeLine ("<h2>Usage</h2>: " ,true ,true );
385- self ::writeLine (" php " .self ::$ self ." -- " .$ commandLong .$ commandShortInc ." " .$ commandExampleList . $ optionList ,true ,true );
386+ self ::writeLine (" php " .self ::$ self ." -- " .$ commandLong .$ commandShortInc ." " .$ optionList ,true ,true );
386387
387388 // write out the available options
388389 if (count ($ commandOptions ) > 0 ) {
You can’t perform that action at this time.
0 commit comments