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/ssam | |
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/ssam')
-rwxr-xr-x | rc/bin/ssam | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rc/bin/ssam b/rc/bin/ssam index dd931893d..a9e32b14e 100755 --- a/rc/bin/ssam +++ b/rc/bin/ssam @@ -4,7 +4,8 @@ rfork e flagfmt='n,e script,f sfile' args='[ file ... ]' -fn usage { echo $0 '[ -n ] [ -e script ] [ -f sfile ] [ file ... ]' >[1=2] } +argv0=$0 +fn usage { echo usage: $argv0 '[ -n ] [ -e script ] [ -f sfile ] [ file ... ]' >[1=2] } if(! ifs=() eval `{aux/getflags $*}){ usage exit usage |