summaryrefslogtreecommitdiff
path: root/rc/bin/man
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2020-03-10 10:09:34 -0700
committerOri Bernstein <ori@eigenstate.org>2020-03-10 10:09:34 -0700
commit5bc9b0c3cac34864d479c099283793ec4ae5565e (patch)
tree943d06d59dfd6c13cc0a724a3118d5099b264884 /rc/bin/man
parent06ea44c895a5f97b7b9b65fce84dec2700f443fb (diff)
improve usage messages (thanks henesy)
Fix inconsistencies between programs and their usage messages, correct instances where information seems to be missing or lost. This includes missing arguments, making usage consistent with manuals, and so on.
Diffstat (limited to 'rc/bin/man')
-rwxr-xr-xrc/bin/man4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/bin/man b/rc/bin/man
index 042fb1cca..f002c2121 100755
--- a/rc/bin/man
+++ b/rc/bin/man
@@ -59,8 +59,8 @@ fn page {
search=yes
while(~ $d 0) {
if(~ $#* 0) {
- echo 'Usage: man [-bntpPSw] [0-9] [0-9] ... name1 name2 ...' >[1=2]
- exit
+ echo 'usage: man [-bntpPSw] [0-9] [0-9] ... name1 name2 ...' >[1=2]
+ exit usage
}
if(test -d $S/$1){
sec=($sec $1)