unknown option in fish completion
jiegec opened this issue · comments
Chen commented
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
Prokjetko001 commented
Vhhb
Prokjetko001 commented
Hsjwjs
Sagitav Sagitov commented
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