[Toybox] [PATCH] Clean up some --help formatting.

Rob Landley rob at landley.net
Tue Dec 4 15:06:04 PST 2018


On 12/4/18 4:35 PM, enh via Toybox wrote:
> Be consistent about upper versus lower case. (Upper seems to have the
> majority, so I went with that, though I'm happy to provide the opposite
> patch as long as we're consistent!)
> 
> Be consistent about using \t. (Though saving a few bytes seems like it
> might be better done in the code that generates help.h rather than
> directly in the source, since tabs make careful ASCII art layout hard
> enough that we regularly have things misaligned.)

My todo item here is when I get deflate properly merged into lib and gzip
promoted, I should have the option to compress the help text and do a "zcat |
cut" thing inside help.c to go "output the 17th null terminated string".

(I vaguely recall busybox did something like back when I was on that project, I
just haven't had a compression engine in the build yet.)

Won't help standalone builds, but it does help the "common case" of one big
binary you fit in an initramfs. And that should make "run of spaces" vs "tabs"
be basically a wash.

Rob



More information about the Toybox mailing list