mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-20 22:27:08 +08:00
Fix warning when help function is called with no arguments
darcs-hash:20060904201612-ac50b-63b83a589735021a6afd6be193500b549e3b25dd.gz
This commit is contained in:
parent
200ebe43dc
commit
73f0d0bb48
@ -19,9 +19,11 @@ function help -d (N_ "Show help for the fish shell")
|
||||
set -l help_topics $h expand-command-substitution expand-process
|
||||
|
||||
# 'help -h' should launch 'help help'
|
||||
switch $argv[1]
|
||||
case -h --h --he --hel --help
|
||||
set argv help
|
||||
if count $argv >/dev/null
|
||||
switch $argv[1]
|
||||
case -h --h --he --hel --help
|
||||
set argv help
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user