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

Make sizes in cluster header human readable with "-h" flag #4

Open
sarnobat opened this issue Jul 10, 2015 · 9 comments
Open

Make sizes in cluster header human readable with "-h" flag #4

sarnobat opened this issue Jul 10, 2015 · 9 comments
Assignees
Milestone

Comments

@sarnobat
Copy link

Similar to du -h, would it be possible to support an option that presents file sizes in megabytes/gigabytes instead of bytes?

@elmindreda
Copy link
Owner

Good idea. Will do.

@sarnobat
Copy link
Author

Excellent. Just an additional piece of info, the long form of the option would be --human-readable.

@elmindreda
Copy link
Owner

Duff mostly follows BSD conventions, so no long options.

@elmindreda elmindreda self-assigned this Jul 12, 2015
@elmindreda elmindreda added this to the 0.6 milestone Jul 12, 2015
@sarnobat
Copy link
Author

Thanks for explaining, I never knew that.

@marcin-gryszkalis
Copy link

Both -h and -H are taken, what letter would you suggest? :)

@sarnobat
Copy link
Author

sarnobat commented Dec 8, 2015

Hmmmm, that's unfortunate. I don't have a good suggestion (maybe this is a legitimate case for a non-BSD style option?).

What is the default format for -f? If I can copy and paste -f %defaultpattern from the manpage and modify it to show human readable sizes that would do for me.

@marcin-gryszkalis
Copy link

Do you mean something like -f "size=%s" for standard display and -f "size=%S" for human readable?

@sarnobat
Copy link
Author

Yes, that kind of syntax.

@marcin-gryszkalis
Copy link

Let @elmindreda decide - I can make it it this way (human readable option is already commited in my fork and included in pull request)

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

No branches or pull requests

3 participants