mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-23 06:32:57 +00:00
btrfs-progs: no extra newline between aliased commands in help text
Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
f802f572b1
commit
e7d0a023ae
3
help.c
3
help.c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user