Skip to content

Commit

Permalink
Fix options markdown in mk:docs (#6237)
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman authored Feb 21, 2025
1 parent 0b744ed commit cfe465a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Commands/core/MkCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ protected static function appendOptionsGlobal($application): string
continue;
}
// The values don't go through standard formatting since we want to show http://default not the uri that was used when running this command.
$body .= '- ** ' . HelpCLIFormatter::formatOptionKeys(self::optionToArray($value)) . '**. ' . self::cliTextToMarkdown($value->getDescription()) . "\n";
$body .= '- **' . HelpCLIFormatter::formatOptionKeys(self::optionToArray($value)) . '**. ' . self::cliTextToMarkdown($value->getDescription()) . "\n";
}
$body .= '- To see all global options, run <code>drush topic</code> and pick the first choice.' . "\n";
return "#### Global Options\n\n$body\n";
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/help/HelpCLIFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public static function formatOptionKeys(iterable $option): string
}
return sprintf(
'%s%s',
$option['shortcut'] ? sprintf('-%s, ', $option['shortcut']) : ' ',
$option['shortcut'] ? sprintf('-%s, ', $option['shortcut']) : '',
sprintf('--%s%s', $option['name'], $value)
);
}
Expand Down

0 comments on commit cfe465a

Please sign in to comment.