Skip to content

Commit ab7c0f8

Browse files
committed
consolidate backup commands into one method
1 parent 09af921 commit ab7c0f8

File tree

2 files changed

+210
-231
lines changed

2 files changed

+210
-231
lines changed

php/commands/help.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ class Help_Command extends Terminus_Command {
88
/**
99
* Get help on a certain command.
1010
*
11+
* <command>
12+
*
1113
* ## EXAMPLES
1214
*
1315
* # get help for `core` command
@@ -43,8 +45,8 @@ private static function find_subcommand( $args ) {
4345
}
4446

4547
private static function show_help( $command ) {
46-
$out = self::get_initial_markdown( $command );
4748

49+
$out = self::get_initial_markdown( $command );
4850
$longdesc = $command->get_longdesc();
4951
if ( $longdesc ) {
5052
$out .= wordwrap( $longdesc, 79 ) . "\n";
@@ -142,4 +144,3 @@ private static function get_max_len( $strings ) {
142144
}
143145

144146
Terminus::add_command( 'help', 'Help_Command' );
145-

0 commit comments

Comments
 (0)