<div dir="auto"><div>It is generic though. The only thing that differs is whether it's 1000 or 1024. All the other -h options already just told you which you were getting, so my patch fixed the one outlier. <div dir="auto"><br></div><div dir="auto">I don't think we need examples (we don't have examples of verbose formats, for example), but if we think we do, it should be in the toybox --help (like other general explanation), not repeated in each toy or (even worse) in one toy but not the others. </div><div dir="auto"><br></div><div dir="auto">Of all the choices, treating just this one toy specially seems like the worst choice. </div><div dir="auto"><br></div><div dir="auto">(My thinking with verbose options was even more strongly that if you want to know what that means, you should suck it and see. Likewise the places where we say things like "posix format"...)</div><br><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 8, 2018, 17:25 Rob Landley <<a href="mailto:rob@landley.net">rob@landley.net</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 12/8/18 6:20 PM, Elliott Hughes wrote:<br>
> And this is strictly less useful... Now it doesn't tell you whether it's K or Ki.<br>
<br>
The units above (for -k) are 1024 and 512. It was always producing<br>
binary output. (Again, the name "human readable" means nothing.<br>
It's "abbreviated". I can add the word "binary" if you'd like?)<br>
<br>
I don't feel strongly about this (except or despising the words<br>
"kibibytes" and similar).  Please let me know what to do when<br>
you and Rikk reach a consensus. :)<br>
<br>
As for "human readable" generic plumbing, the toybox --help text<br>
says:<br>
<br>
> The filename "-" means stdin, "--" stops argument parsing,<br>
> and numerical arguments accept a single letter suffix for<br>
> kilo, mega, giga, tera, peta, and exabytes, plus an additional<br>
> "d" to indicate decimal 1000's instead of 1024. Durations take<br>
>        minute, hour, or day suffixes (ala 0.1m = 6s).<br>
<br>
Because it's trying to describe generic stuff. Alas, the "human<br>
readable" plumbing takes a bunch of flags because it _isn't_<br>
generic. :P<br>
<br>
Rob<br>
_______________________________________________<br>
Toybox mailing list<br>
<a href="mailto:Toybox@lists.landley.net" target="_blank" rel="noreferrer">Toybox@lists.landley.net</a><br>
<a href="http://lists.landley.net/listinfo.cgi/toybox-landley.net" rel="noreferrer noreferrer" target="_blank">http://lists.landley.net/listinfo.cgi/toybox-landley.net</a><br>
</blockquote></div></div></div>