Skip to content

--hidden flag is not idempotent #488

@laur89

Description

@laur89

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 in

error: The argument '--hidden' was provided more than once, but cannot be used multiple times

error. 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions