use $USAGE instead of print_usage to print usage

There is no real functionality change other than
to remove calls to print_usage that is most cases
would have generated an error.
This commit is contained in:
Landon Curt Noll committed 2024-10-07 00:58:50 -07:00
1 parent 35038a63bd
commit cad665c021
36 files changed
+103 -118

No files matched your search

+2 -2
View File
@@ -190,7 +190,7 @@ while getopts :hv:Vd:D:nNU:w:e:E: flag; do
*/) ;;
*) echo "$0: ERROR: in -D docroot/, the docroot must end in /" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
esac
@@ -210,7 +210,7 @@ while getopts :hv:Vd:D:nNU:w:e:E: flag; do
;;
\?) echo "$0: ERROR: invalid option: -$OPTARG" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
:) echo "$0: ERROR: option -$OPTARG requires an argument" 1>&2