[GH-ISSUE #220] [WINDOWS]: The argument '--number-of-lines <number_of_lines>' cannot be used with '--depth <depth>' #101

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

Originally created by @yahiaboudah on GitHub (May 23, 2022).
Original GitHub issue: https://github.com/bootandy/dust/issues/220

I want my depth to be 1 so I do: dust -d 1 -r -n Get-File-Count

Get-File-Count is a special powershell function I wrote to get the number of files and dirs in the current directory.

So yeah, it's not working

Originally created by @yahiaboudah on GitHub (May 23, 2022). Original GitHub issue: https://github.com/bootandy/dust/issues/220 I want my depth to be 1 so I do: dust -d 1 -r -n Get-File-Count Get-File-Count is a special powershell function I wrote to get the number of files and dirs in the current directory. So yeah, it's not working
zhus closed this issue 2026-06-08 11:25:41 +03:00
Author
Owner

@bootandy commented on GitHub (May 24, 2022):

You can't use both -n and -d. Use one or the other not both.

<!-- gh-comment-id:1135519264 --> @bootandy commented on GitHub (May 24, 2022): You can't use both -n and -d. Use one or the other not both.
Author
Owner

@yahiaboudah commented on GitHub (May 24, 2022):

Can I specify how many directories and files are displayed, say when depth = 5? because it only shows a limited number of dirs, instead of the full length of all available directories and files.

<!-- gh-comment-id:1135531391 --> @yahiaboudah commented on GitHub (May 24, 2022): Can I specify how many directories and files are displayed, say when depth = 5? because it only shows a limited number of dirs, instead of the full length of all available directories and files.
Author
Owner

@bootandy commented on GitHub (May 27, 2022):

Not currently, I was a bit unsure how it would work if a user provided both depth=5 and number=10. Thinking about it now I don't see why it isn't possible. I'll reopen this issue and take another look when I get time.

<!-- gh-comment-id:1139430411 --> @bootandy commented on GitHub (May 27, 2022): Not currently, I was a bit unsure how it would work if a user provided both depth=5 and number=10. Thinking about it now I don't see why it isn't possible. I'll reopen this issue and take another look when I get time.
Author
Owner

@bootandy commented on GitHub (Jul 1, 2022):

also by default using '-d' will show all the directories/file so using '-d 1' means you won't need a -n Get-File-Count

<!-- gh-comment-id:1172224725 --> @bootandy commented on GitHub (Jul 1, 2022): also by default using '-d' will show all the directories/file so using '-d 1' means you won't need a -n Get-File-Count
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#101