Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-minsize 100M is parsed as -minsize 100 without a peep #134

Open
GerHobbelt opened this issue May 22, 2023 · 0 comments
Open

-minsize 100M is parsed as -minsize 100 without a peep #134

GerHobbelt opened this issue May 22, 2023 · 0 comments

Comments

@GerHobbelt
Copy link

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

-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 🙏 😄

Footnotes

  1. Mattel's Ken is a certifiable genius compared to me & my brain, sometimes. 🤦
    Plus the bastard has abs, where I only got the belly and the ass. 🤡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant