git takes --help even when it needs a command (#2984)

`git --help` is a valid command and fish should complete it as such
This commit is contained in:
Sanne Wouda 2016-04-29 11:42:15 +01:00 committed by Fabian Homborg
parent 6466ffe82d
commit 09bb713989

View file

@ -172,7 +172,7 @@ function __fish_git_custom_commands
end
# general options
complete -f -c git -n 'not __fish_git_needs_command' -l help -d 'Display the manual of a git command'
complete -f -c git -l help -d 'Display the manual of a git command'
#### fetch
complete -f -c git -n '__fish_git_needs_command' -a fetch -d 'Download objects and refs from another repository'