Skip to content

Commit 65c4105

Browse files
committed
fixing output of console help
1 parent bcfea21 commit 65c4105

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/PatternLab/Console.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)