-
-
Notifications
You must be signed in to change notification settings - Fork 815
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
Panic when using owner #1163
Labels
Comments
hmm, I wonder if these are caused by a bug in clap |
I'll look into this later tonight. |
tmccombs
added a commit
to tmccombs/fd
that referenced
this issue
Nov 3, 2022
Unfortunately, clap_derive can't combine a value_parser of Option<T> with an optional argument to get a merged Option<T> so we need to do the check for the nop outside of the value parser. Also adds some tests for --owner Fixes: sharkdp#1163
tmccombs
added a commit
to tmccombs/fd
that referenced
this issue
Nov 3, 2022
Unfortunately, clap_derive can't combine a value_parser of Option<T> with an optional argument to get a merged Option<T> so we need to do the check for the nop outside of the value parser. Also adds some tests for --owner Fixes: sharkdp#1163
tmccombs
added a commit
to tmccombs/fd
that referenced
this issue
Nov 3, 2022
Unfortunately, clap_derive can't combine a value_parser of Option<T> with an optional argument to get a merged Option<T> so we need to do the check for the nop outside of the value parser. Also adds some tests for --owner Fixes: sharkdp#1163
Thanks @sharkdp |
tmccombs
added a commit
to tmccombs/fd
that referenced
this issue
Nov 11, 2022
Unfortunately, clap_derive can't combine a value_parser of Option<T> with an optional argument to get a merged Option<T> so we need to do the check for the nop outside of the value parser. Also adds some tests for --owner Fixes: sharkdp#1163
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checks
Describe the bug you encountered:
I guess this is akin to #1160? But as it is not a
u32
I wasn't sure how to put in a fix (I was planning to copy the fix for that issue)Describe what you expected to happen:
Before upgrading to this version, the command ran fine. I expect it to list all directories owned by me (
$USER
)What version of
fd
are you using?0.5.1
Which operating system / distribution are you on?
The text was updated successfully, but these errors were encountered: