[GH-ISSUE #334] Could you add an option to only display total? #148

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

Originally created by @ModProg on GitHub (Aug 24, 2023).
Original GitHub issue: https://github.com/bootandy/dust/issues/334

I'm basically looking for a shorthand for --number-of-lines 0

Originally created by @ModProg on GitHub (Aug 24, 2023). Original GitHub issue: https://github.com/bootandy/dust/issues/334 I'm basically looking for a shorthand for `--number-of-lines 0`
zhus closed this issue 2026-06-08 11:25:53 +03:00
Author
Owner

@cppxor2arr commented on GitHub (Aug 30, 2023):

You can use the -d, --depth option.

dust -d0

If you want exactly --number-of-lines=0:

dust -n0

P.S. Running dust -h or dust --help is helpful for questions like this.

<!-- gh-comment-id:1698782111 --> @cppxor2arr commented on GitHub (Aug 30, 2023): You can use the `-d, --depth` option. ```sh dust -d0 ``` If you want exactly `--number-of-lines=0`: ```sh dust -n0 ``` P.S. Running `dust -h` or `dust --help` is helpful for questions like this.
Author
Owner

@ModProg commented on GitHub (Aug 30, 2023):

yes I knew about -n0 I was just wondering if it made sense to have an actual option for that. but maybe not, -n0 is already pretty short. And --only-total is only slightly more self explaining than --number-of-lines=0

<!-- gh-comment-id:1698885382 --> @ModProg commented on GitHub (Aug 30, 2023): yes I knew about `-n0` I was just wondering if it made sense to have an actual option for that. but maybe not, `-n0` is already pretty short. And `--only-total` is only slightly more self explaining than `--number-of-lines=0`
Author
Owner

@cppxor2arr commented on GitHub (Aug 30, 2023):

yes I knew about -n0 I was just wondering if it made sense to have an actual option for that.

Oh, I see what you mean. To me, a depth of 0 is pretty close to meaning "only display the total".

<!-- gh-comment-id:1698891455 --> @cppxor2arr commented on GitHub (Aug 30, 2023): > yes I knew about -n0 I was just wondering if it made sense to have an actual option for that. Oh, I see what you mean. To me, a depth of 0 is pretty close to meaning "only display the total".
Author
Owner

@ModProg commented on GitHub (Aug 30, 2023):

In my case only -n0 worked, because I was piping in filenames to measure the total size of all images on my disk.

<!-- gh-comment-id:1699023057 --> @ModProg commented on GitHub (Aug 30, 2023): In my case only `-n0` worked, because I was piping in filenames to measure the total size of all images on my disk.
Author
Owner

@bootandy commented on GitHub (Nov 7, 2023):

thanks to @cppxor2arr I'll close this.

<!-- gh-comment-id:1796899107 --> @bootandy commented on GitHub (Nov 7, 2023): thanks to @cppxor2arr I'll close this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#148