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 = "") {
367
367
$ lengthLong = 0 ;
368
368
foreach ($ commandOptions as $ option => $ attributes ) {
369
369
$ 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 ."] " ;
371
372
$ lengthLong = ($ attributes ["optionLongLength " ] > $ lengthLong ) ? $ attributes ["optionLongLength " ] : $ lengthLong ;
372
373
}
373
374
@@ -382,7 +383,7 @@ public static function writeHelpCommand($command = "") {
382
383
self ::writeLine ("" );
383
384
self ::writeLine ("<h1> " .$ commandLongUC ." Command Options</h1> " ,true ,true );
384
385
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 );
386
387
387
388
// write out the available options
388
389
if (count ($ commandOptions ) > 0 ) {
You can’t perform that action at this time.
0 commit comments