btrfs-progs: no extra newline between aliased commands in help text

Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
David Sterba 2015-06-26 16:44:29 +02:00
parent f802f572b1
commit e7d0a023ae

3
help.c
View File

@ -35,7 +35,7 @@ static int do_usage_one_command(const char * const *usagestr,
if (!usagestr || !*usagestr) if (!usagestr || !*usagestr)
return -1; return -1;
fprintf(outf, "%s%s\n", (flags & USAGE_LISTING) ? " " : "usage: ", fprintf(outf, "%s%s", (flags & USAGE_LISTING) ? " " : "usage: ",
*usagestr++); *usagestr++);
/* a short one-line description (mandatory) */ /* a short one-line description (mandatory) */
@ -43,6 +43,7 @@ static int do_usage_one_command(const char * const *usagestr,
return 0; return 0;
else if (!*usagestr) else if (!*usagestr)
return -2; return -2;
fputc('\n', outf);
if (flags & USAGE_LISTING) if (flags & USAGE_LISTING)
pad = 8; pad = 8;