rc: usage: optimize help string alignment output a little
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
c7cc685458
commit
c21c1f1e59
@ -75,8 +75,9 @@ usage(int exit_status)
|
||||
|
||||
lo = p = xstrdup(longopts_help[i]);
|
||||
while ((token = strsep(&p, "\n"))) {
|
||||
while (++len < 37)
|
||||
printf(" ");
|
||||
len = 36 - len;
|
||||
if (len > 0)
|
||||
printf("%*s", len, "");
|
||||
puts(token);
|
||||
len = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user