[GH-ISSUE #136] Multiple arguments should be unified under 1 scale #55

Closed
opened 2026-06-08 11:25:29 +03:00 by zhus · 5 comments
Owner

Originally created by @KSXGitHub on GitHub (Mar 12, 2021).
Original GitHub issue: https://github.com/bootandy/dust/issues/136

I often use dust <file1> <file2> <file3> to compare their sizes. Unfortunately, their visual bars all have the same length despite their different sizes.

Example

Command

dust /bin/ls /bin/docker

Expected behaviour

 140K   ┌── ls       │                                                  █ │   0%
  51M   ├── docker   │███████████████████████████████████████████████████ │ 100%
  51M ┌─┴ ls + docker│███████████████████████████████████████████████████ │ 100%

Actual behaviour

 140K ┌── ls    │████████████████████████████████████████████████████████ │ 100%
  51M ┌── docker│████████████████████████████████████████████████████████ │ 100%
Originally created by @KSXGitHub on GitHub (Mar 12, 2021). Original GitHub issue: https://github.com/bootandy/dust/issues/136 I often use `dust <file1> <file2> <file3>` to compare their sizes. Unfortunately, their visual bars all have the same length despite their different sizes. ## Example ### Command ```sh dust /bin/ls /bin/docker ``` ### Expected behaviour ``` 140K ┌── ls │ █ │ 0% 51M ├── docker │███████████████████████████████████████████████████ │ 100% 51M ┌─┴ ls + docker│███████████████████████████████████████████████████ │ 100% ``` ### Actual behaviour ``` 140K ┌── ls │████████████████████████████████████████████████████████ │ 100% 51M ┌── docker│████████████████████████████████████████████████████████ │ 100% ```
zhus closed this issue 2026-06-08 11:25:29 +03:00
Author
Owner

@xdevs23 commented on GitHub (Mar 18, 2021):

Just my two cents: Perhaps adding a command line argument like --compare to enable this behavior could be better than changing the default behavior for everyone.

<!-- gh-comment-id:802288777 --> @xdevs23 commented on GitHub (Mar 18, 2021): Just my two cents: Perhaps adding a command line argument like `--compare` to enable this behavior could be better than changing the default behavior for everyone.
Author
Owner

@KSXGitHub commented on GitHub (Mar 19, 2021):

@xdevs23 I find no use case where bars having the same length despite their different sizes make sense. Not to mention, if a user really wish the old behaviour for some inexplicable reason, they can always call dust multiple times (i.e. dust foo && dust bar instead of dust foo bar).

<!-- gh-comment-id:802452770 --> @KSXGitHub commented on GitHub (Mar 19, 2021): @xdevs23 I find no use case where bars having the same length despite their different sizes make sense. Not to mention, if a user really wish the old behaviour for some inexplicable reason, they can always call `dust` multiple times (i.e. `dust foo && dust bar` instead of `dust foo bar`).
Author
Owner

@xdevs23 commented on GitHub (Mar 19, 2021):

@KSXGitHub that's a good point, I agree.

<!-- gh-comment-id:803001693 --> @xdevs23 commented on GitHub (Mar 19, 2021): @KSXGitHub that's a good point, I agree.
Author
Owner

@bootandy commented on GitHub (Mar 27, 2021):

I've wondered about this myself.

I did design it that way on purpose originally but in hindsight I think that might have been a mistake.

It's a breaking change but I think it's a reasonable request. I'll try and include it in the next major version release.

<!-- gh-comment-id:808701515 --> @bootandy commented on GitHub (Mar 27, 2021): I've wondered about this myself. I did design it that way on purpose originally but in hindsight I think that might have been a mistake. It's a breaking change but I think it's a reasonable request. I'll try and include it in the next major version release.
Author
Owner

@bootandy commented on GitHub (Jun 23, 2021):

behaviour changed in v0.6.0

<!-- gh-comment-id:866650173 --> @bootandy commented on GitHub (Jun 23, 2021): behaviour changed in v0.6.0
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#55