rc: usage: optimize help string alignment output a little

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2011-11-19 02:39:08 -05:00
parent c7cc685458
commit c21c1f1e59

View File

@ -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;
}