summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-12-08 19:27:50 +0100
committerDavid Sterba <dsterba@suse.com>2016-12-14 15:06:36 +0100
commitc9d43f2f3dd0976c1ce1e8e4cd1213c59384ff23 (patch)
treec981fdec20afc028ee4f4acd5e04ad96bee816d6 /help.c
parentb67e9a1b132c98a2e31df9e8ae79273a8531ba6f (diff)
btrfs-progs: help: fix printing of aliased commands
The help string for aliased commands is glued on one line. This happened for device delete/remove. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'help.c')
-rw-r--r--help.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/help.c b/help.c
index c8bb720..5573f0f 100644
--- a/help.c
+++ b/help.c
@@ -148,6 +148,8 @@ static void usage_command_group_internal(const struct cmd_group *grp, int full,
usage_command_internal(cmd->usagestr, cmd->token, full,
1, cmd->flags & CMD_ALIAS, outf);
+ if (cmd->flags & CMD_ALIAS)
+ putchar('\n');
continue;
}