Skip to content

Commit dc42d5f

Browse files
Merge pull request #80 from diggy/package-readme-prevent-notice-synopsis
package-readme: prevent notice synopsis
2 parents e57b0c9 + be5adac commit dc42d5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/ScaffoldPackageCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public function package_readme( $args, $assoc_args ) {
273273
$readme_args['commands'][] = array(
274274
'name' => "wp {$command}",
275275
'shortdesc' => $parent_command['description'],
276-
'synopsis' => "wp {$command} {$parent_command['synopsis']}",
276+
'synopsis' => "wp {$command}" . ( empty( $parent_command['subcommands'] ) ? " {$parent_command['synopsis']}" : "" ),
277277
'longdesc' => $longdesc,
278278
);
279279
}

0 commit comments

Comments
 (0)