-
-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--hidden flag is not idempotent #488
Comments
Thank you for the feedback!
No. We should change it. This should be easy to implement. We need to use arg("hidden").long("hidden").short("H").overrides_with("hidden") This should probably also be done for some other similar arguments. |
Preven fd to end up with multiple --hidden flags Fixes sharkdp#488
I am hoping this resolves the reported issue. |
@rootbid Thank you for looking into this. Similar arguments would essentially be all flags (the ones which do not take values):
Care must be taken that |
Add 'overrides_with' to format flags. Resolves sharkdp#488
Add 'overrides_with' to format flags. Resolves sharkdp#488
Add 'overrides_with' to format flags. Resolves #488
Released in fd 7.5.0 |
Creating an alias for fd providing the
--hidden
flag has been recommended here for numerous times.I did that, but now am seeing problems when another shell abstraction (eg fzf's
FZF_DEFAULT_COMMAND
env var) is providing--hidden
as well, causing fd command to end up with multiple--hidden
flags, resulting inerror. Now, said command could bypass alias by prefixing fd with
command
(at least in bash), but generally such flags are allowed to be provided many times.Is there a reason for current behavior?
Running ver
7.0.0
The text was updated successfully, but these errors were encountered: