summaryrefslogtreecommitdiff
path: root/etc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions')
-rwxr-xr-xetc/functions/help5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/functions/help b/etc/functions/help
index 62278a8..7f5e35b 100755
--- a/etc/functions/help
+++ b/etc/functions/help
@@ -29,6 +29,11 @@ function help_show_apt {
apt-cache show ${(s/:/)$(apt-file search -F $commands[$1])[1]}
}
+if [[ -z $1 ]] {
+ echo "Usage: help <command>" > /dev/stderr
+ return 1
+}
+
for method in $methods; {
if help_check_$method $1; then
((found++))