mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #330] Allow options to be used multiple times. #146
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 rundust -r, it throws an error:error: The argument '--reverse' was provided more than once, but cannot be used multiple times@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.
@johntheocs commented on GitHub (Jul 13, 2023):
Maybe we can remove the duplicated options before passing them down to the library.
@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.