Skip to content
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

unknown option in fish completion #2992

Open
jiegec opened this issue Aug 1, 2022 · 3 comments
Open

unknown option in fish completion #2992

jiegec opened this issue Aug 1, 2022 · 3 comments
Labels

Comments

@jiegec
Copy link

jiegec commented Aug 1, 2022

Command attempted:

hub status

What happened:

It prints the following message:

~> git scomplete: --file: unknown option

~/.nix-profile/share/fish/vendor_completions.d/hub.fish (line 52):
complete -f -c hub -n ' __fish_hub_using_command pull-request' -s F --file -d "Read the pull request title and description from <FILE>"
^
from sourcing file ~/.nix-profile/share/fish/vendor_completions.d/hub.fish

(Type 'help complete' for related documentation)
t                            stc^C

More info:

Hub version:

git version 2.37.1
hub version 2.14.2

Fish version: 3.5.1

Relevant code: https://github.com/github/hub/blob/c8e68d548a39ec0fab6f674a669c21b54d4eec61/etc/hub.fish_completion#L52

@jiegec jiegec added the bug label Aug 1, 2022
@Prokjetko001
Copy link

Vhhb

@Prokjetko001
Copy link

Hsjwjs

@Sithell
Copy link

Sithell commented Sep 15, 2022

Can confirm, reproduced it on my machine.
Quick fix would be to remove either F or --file option from
complete -f -c hub -n ' __fish_hub_using_command pull-request' -s F --file -d "Read the pull request title and description from <FILE>" in hub.fish

Probably caused by a typo in #2502

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants