Fix warning when help function is called with no arguments

darcs-hash:20060904201612-ac50b-63b83a589735021a6afd6be193500b549e3b25dd.gz
This commit is contained in:
axel 2006-09-05 06:16:12 +10:00
parent 200ebe43dc
commit 73f0d0bb48

View file

@ -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
#