rdfind icon indicating copy to clipboard operation
rdfind copied to clipboard

`-minsize 100M` is parsed as `-minsize 100` without a peep

Open GerHobbelt opened this issue 2 years ago • 0 comments

See also #133 comment; while I hadn't seen this in either a quick RTFC of your code nor in the manpage or --help output, I did write this, quite thoughtlessly.[^1]

[^1]: Mattel's Ken is a certifiable genius compared to me & my brain, sometimes. :facepalm:
Plus the bastard has abs, where I only got the belly and the ass. :clown_face:

-minsize 100M

Given my #133 results, it might be nice to either:

  1. parse multipliers k, m and g in both lower and upper case as representing $\times 1000$, $\times 10^6$ and $\times 10^9$ respectively (as we're regarding disk storage, so 1000 base instead of 1024), or
  2. give a peep (warning or error) about unsupported/unrecognized input cruft around argument values, e.g. error: 100M is not a valid value. Specify number of bytes as a decimal numeric value. Bye!

Thank you :pray: :smile:

GerHobbelt avatar May 22 '23 12:05 GerHobbelt