Skip to content

size: when using --into it should try all units #53

Description

@andres-lowrie

for example the following doesn't work

human size -i 50g

although that feels like it should work in that its 'obvious' that I want Gigabytes and the command could simply lookup all the units it knows of.

In contrast because --units defaults to iec (which makes since when going from machine to human) the following does work without --units:

human size -i 50gi
53687091200

Currently you have to specify --units in order for the it to work ie:

human size -i --units si 50g
>50000000000                                                                                                                     

It's a bit verbose having to pass in the units going --into instead it should check all the units or something and fail if the unit is unknown. The verbose option is still there which of course should continue to work

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions