expac icon indicating copy to clipboard operation
expac copied to clipboard

Make --humansize more like pacman's default behaviour

Open el-remph opened this issue 1 year ago • 1 comments

--humansize argument is made optional; I've made sure that existing uses of it aren't broken, while in a more natural form for the CLI, when --humansize is given without an SI-ish prefix as an argument, it finds an appropriate unit for each size. eg:

$ expac -H K %m expac pacman
33.30 KiB
4897.76 KiB
$ expac --humansize M %m expac pacman
0.03 MiB
4.78 MiB
$ expac -H %m expac pacman
33.30 KiB
4.78 MiB

el-remph avatar Jul 13 '24 22:07 el-remph

Thanks for the contribution! In general, small features/changes like this should be squashed into a single commit. I don't need to have your own "internal" revision history.

falconindy avatar Aug 05 '24 21:08 falconindy

In general, small features/changes like this should be squashed into a single commit

ah yes, sorry about that, this was before I had discovered the joys of the force push (:

el-remph avatar Oct 04 '24 03:10 el-remph

Thanks. Merged this with a few changes.

falconindy avatar Oct 04 '24 22:10 falconindy