This TODO note is suggesting that we allow the --maxsize flag to expect
common byte-size units, like "300 MB", "10GB" and "10 GiB".
The parse-size crate already implements the parsing needed to make this work.
EDIT: Oops, seems like we are already usinghuman_size::Size to do this kind of parsing.
EDIT2: Note that humansize and human-size are two different crates.
I was making a contribution when I found this:
https://github.com/holmgr/cargo-sweep/blob/75414ca5dfd138691031c6f701fbaa350fd5b095/src/main.rs#L263-L273
This TODO note is suggesting that we allow the
--maxsize
flag to expect common byte-size units, like"300 MB"
,"10GB"
and"10 GiB"
.The parse-size crate already implements the parsing needed to make this work.
EDIT: Oops, seems like we are already using
human_size::Size
to do this kind of parsing. EDIT2: Note thathumansize
andhuman-size
are two different crates.