aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
authorAlejandro Colomar <alx.manpages@gmail.com>2021-05-09 23:39:21 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-05-10 11:33:27 +1200
commit94bf02f41b28c2dd5251d9bcc9368da2ec542f84 (patch)
treea12140fd0f29f713a7871fe1a6b951840e1c5ebf /scripts
parenta3ccd456f3880b4a82c3f424e3375b3f75a03cbc (diff)
downloadman-pages-94bf02f41b28c2dd5251d9bcc9368da2ec542f84.tar.gz
scripts/bash_aliases: Fix error messages
Fix the error messages to clearly show that both dirs and manual pages are accepted, and that more than one argument is accepted. Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bash_aliases4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/bash_aliases b/scripts/bash_aliases
index 7b1b7da9ca..a14026bda2 100644
--- a/scripts/bash_aliases
+++ b/scripts/bash_aliases
@@ -126,7 +126,7 @@ function man_section()
function man_lsfunc()
{
if ! [ -v 1 ]; then
- >&2 echo "Usage: ${FUNCNAME[0]} <dir>";
+ >&2 echo "Usage: ${FUNCNAME[0]} <manpage|manNdir>...";
return ${EX_USAGE};
fi
@@ -148,7 +148,7 @@ function man_lsfunc()
function man_lsvar()
{
if ! [ -v 1 ]; then
- >&2 echo "Usage: ${FUNCNAME[0]} <dir>";
+ >&2 echo "Usage: ${FUNCNAME[0]} <manpage|manNdir>...";
return ${EX_USAGE};
fi