Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bin/command.php
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,10 @@ private static function gen_cmd_pages( $cmd, $parent = [], $verbose = false ) {
}
$docs = preg_replace( '/(#?## GLOBAL PARAMETERS).+/s', $replace_global, $docs );

// Add link to argument syntax documentation after OPTIONS heading.
$options_note = 'See the [argument syntax](https://make.wordpress.org/cli/handbook/references/argument-syntax/) reference for a detailed explanation of the syntax conventions used.';
$docs = preg_replace( '/(### OPTIONS)/', '$1' . PHP_EOL . PHP_EOL . $options_note, $docs );

$binding['docs'] = $docs;
}

Expand Down
Loading
Loading