mirror of
https://github.com/fish-shell/fish-shell
synced 2024-09-22 23:42:00 +00:00
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:
parent
6466ffe82d
commit
09bb713989
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue