From 5bc9b0c3cac34864d479c099283793ec4ae5565e Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Tue, 10 Mar 2020 10:09:34 -0700 Subject: 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. --- rc/bin/ssam | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rc/bin/ssam') 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 -- cgit v1.2.3