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

+4 -4
View File
@@ -213,7 +213,7 @@ while getopts :hv:Vd:D:nNt:w: 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
@@ -230,13 +230,13 @@ while getopts :hv:Vd:D:nNt:w: flag; do
*"'"*)
echo "$0: ERROR: in -t tagline, the tagline may not contain a single-quote character: $OPTARG" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
*'"'*)
echo "$0: ERROR: in -t tagline, the tagline may not contain a double-quote character: $OPTARG" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
*) ;;
@@ -251,7 +251,7 @@ while getopts :hv:Vd:D:nNt:w: 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