summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-06-26 16:44:29 +0200
committerDavid Sterba <dsterba@suse.cz>2015-06-26 16:44:29 +0200
commite7d0a023aed0ed4f0d435a10b5e92f9d7fbd4dd7 (patch)
tree4096a25cf23c10cf1749da3f331fe39223b979c8 /help.c
parentf802f572b1cb1d33bab9747e87e6506b284546cf (diff)
btrfs-progs: no extra newline between aliased commands in help text
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'help.c')
-rw-r--r--help.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/help.c b/help.c
index eacce84..1afc09d 100644
--- a/help.c
+++ b/help.c
@@ -35,7 +35,7 @@ static int do_usage_one_command(const char * const *usagestr,
if (!usagestr || !*usagestr)
return -1;
- fprintf(outf, "%s%s\n", (flags & USAGE_LISTING) ? " " : "usage: ",
+ fprintf(outf, "%s%s", (flags & USAGE_LISTING) ? " " : "usage: ",
*usagestr++);
/* a short one-line description (mandatory) */
@@ -43,6 +43,7 @@ static int do_usage_one_command(const char * const *usagestr,
return 0;
else if (!*usagestr)
return -2;
+ fputc('\n', outf);
if (flags & USAGE_LISTING)
pad = 8;