diff options
author | Ori Bernstein <ori@eigenstate.org> | 2020-03-10 10:09:34 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2020-03-10 10:09:34 -0700 |
commit | 5bc9b0c3cac34864d479c099283793ec4ae5565e (patch) | |
tree | 943d06d59dfd6c13cc0a724a3118d5099b264884 /rc/bin/doctype | |
parent | 06ea44c895a5f97b7b9b65fce84dec2700f443fb (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/doctype')
-rwxr-xr-x | rc/bin/doctype | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rc/bin/doctype b/rc/bin/doctype index 0f04f91ef..5aa6cc300 100755 --- a/rc/bin/doctype +++ b/rc/bin/doctype @@ -1,6 +1,11 @@ #!/bin/rc # doctype: synthesize proper command line for troff +if(~ $#* 0){ + echo 'usage: doctype [ -n ] [ -T dev ] [ file ] ...' >[1=2] + exit usage +} + troff=troff eqn=eqn prefer=prefer |