[GH-ISSUE #330] Allow options to be used multiple times. #146

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

Originally created by @pcroland on GitHub (Jul 2, 2023).
Original GitHub issue: https://github.com/bootandy/dust/issues/330

This would improve flexibility with aliases. For example i have alias dust="dust -r" in my .zshrc, so now if i run dust -r, it throws an error:
error: The argument '--reverse' was provided more than once, but cannot be used multiple times

Originally created by @pcroland on GitHub (Jul 2, 2023). Original GitHub issue: https://github.com/bootandy/dust/issues/330 This would improve flexibility with aliases. For example i have `alias dust="dust -r"` in my `.zshrc`, so now if i run `dust -r`, it throws an error: `error: The argument '--reverse' was provided more than once, but cannot be used multiple times`
zhus closed this issue 2026-06-08 11:25:52 +03:00
Author
Owner

@bootandy commented on GitHub (Jul 13, 2023):

That sounds reasonable, although this might be down to the library I am using to parse command line options.

<!-- gh-comment-id:1633703318 --> @bootandy commented on GitHub (Jul 13, 2023): That sounds reasonable, although this might be down to the library I am using to parse command line options.
Author
Owner

@johntheocs commented on GitHub (Jul 13, 2023):

Maybe we can remove the duplicated options before passing them down to the library.

<!-- gh-comment-id:1634750871 --> @johntheocs commented on GitHub (Jul 13, 2023): Maybe we can remove the duplicated options before passing them down to the library.
Author
Owner

@bootandy commented on GitHub (Jul 15, 2023):

If I can remove duplicate options then I'm parsing the input. Then there is no point in the library as I've already parsed the input.

there might be a flag in the library I can set somewhere.

<!-- gh-comment-id:1636717785 --> @bootandy commented on GitHub (Jul 15, 2023): If I can remove duplicate options then I'm parsing the input. Then there is no point in the library as I've already parsed the input. there might be a flag in the library I can set somewhere.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#146