Skip to content

Commit be5adac

Browse files
author
Peter J. Herrel
committed
package-readme: prevent notice synopsis
1 parent d4fb888 commit be5adac

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)