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
@@ -169,7 +169,7 @@ while getopts :hv:Vd:D:j:nN 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
@@ -183,7 +183,7 @@ while getopts :hv:Vd:D:j:nN 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
+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
+4 -4
View File
@@ -216,7 +216,7 @@ while getopts :hv:Vd:D:nNQt: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
@@ -236,13 +236,13 @@ while getopts :hv:Vd:D:nNQt: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
;;
*) ;;
@@ -257,7 +257,7 @@ while getopts :hv:Vd:D:nNQt: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
+1 -1
View File
@@ -172,7 +172,7 @@ while getopts :hv:Vd:D:nNU:w: flag; do
w) ;;
\?) 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
+2 -2
View File
@@ -196,7 +196,7 @@ while getopts :hv:Vd:D:j:nN 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
@@ -208,7 +208,7 @@ while getopts :hv:Vd:D:j:nN 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
+1 -1
View File
@@ -342,7 +342,7 @@ while getopts :hv:Vd:D:nN 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
+1 -1
View File
@@ -749,7 +749,7 @@ while getopts :hv:Vd:c:s:i:T:nN 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
+1 -1
View File
@@ -429,7 +429,7 @@ while getopts :hv:Vd:D:nN 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
+1 -1
View File
@@ -219,7 +219,7 @@ while getopts :hv:Vd:nN 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
+4 -4
View File
@@ -274,7 +274,7 @@ while getopts :hv:Vd:D:nNt:Qw: 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
@@ -290,13 +290,13 @@ while getopts :hv:Vd:D:nNt:Qw: 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
;;
*) ;;
@@ -312,7 +312,7 @@ while getopts :hv:Vd:D:nNt:Qw: 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
+4 -4
View File
@@ -184,7 +184,7 @@ while getopts :hv:Vd:D:nNt:Qw: 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
@@ -200,13 +200,13 @@ while getopts :hv:Vd:D:nNt:Qw: 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
;;
*) ;;
@@ -222,7 +222,7 @@ while getopts :hv:Vd:D:nNt:Qw: 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
+4 -4
View File
@@ -181,7 +181,7 @@ while getopts :hv:Vd:D:nNt:Qw: 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
@@ -198,13 +198,13 @@ while getopts :hv:Vd:D:nNt:Qw: 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
;;
*) ;;
@@ -217,7 +217,7 @@ while getopts :hv:Vd:D:nNt:Qw: 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
+1 -1
View File
@@ -263,7 +263,7 @@ while getopts :hv:Vd:nNw: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
+4 -4
View File
@@ -409,7 +409,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
@@ -425,13 +425,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
;;
*) ;;
@@ -445,7 +445,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
+4 -4
View File
@@ -217,7 +217,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
@@ -233,13 +233,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
;;
*) ;;
@@ -253,7 +253,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
+4 -4
View File
@@ -187,7 +187,7 @@ while getopts :hv:Vd:D:nNQt: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
@@ -206,13 +206,13 @@ while getopts :hv:Vd:D:nNQt: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
;;
*) ;;
@@ -226,7 +226,7 @@ while getopts :hv:Vd:D:nNQt: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
+4 -4
View File
@@ -308,7 +308,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
@@ -324,13 +324,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
;;
*) ;;
@@ -344,7 +344,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
+24 -39
View File
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
#
# md2html.sh - convert markdown into an IOCCC HTML file via config file
#
@@ -354,22 +355,6 @@ function global_variable_setup
}
# print_usage - print the usage message, exit code and version information
#
# Call this to print the usage message, by default to stdout.
# However one might usually want to do:
#
# print_usage 1>&2
#
function print_usage
{
# print usage message
#
echo "$USAGE"
return 0
}
# parse_command_line - parse command line arguments
#
# You MUST call this function at least once AND after calling global_variable_setup.
@@ -418,7 +403,7 @@ function parse_command_line
#
while getopts :hv:VnNd:D:c:H:t:m:b:a:s:So:U:w:e:E: flag; do
case "$flag" in
h) print_usage 1>&2
h) echo "$USAGE" 1>&2
exit 2
;;
v) V_FLAG="$OPTARG"
@@ -434,7 +419,7 @@ function parse_command_line
if [[ $GETOPT_PHASE -ne 0 ]]; then
echo "$0: ERROR: -d may only be used during getopt phase 0, current getopt phase: $GETOPT_PHASE" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
fi
#
@@ -445,7 +430,7 @@ function parse_command_line
*/) ;;
*) 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
@@ -461,7 +446,7 @@ function parse_command_line
if [[ $GETOPT_PHASE -ne 0 ]]; then
echo "$0: ERROR: -c may only be used during getopt phase 0, current getopt phase: $GETOPT_PHASE" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
fi
#
@@ -475,7 +460,7 @@ function parse_command_line
;;
*) echo "$0: ERROR: -H phase=name not in -H phase=name form" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
esac
@@ -484,25 +469,25 @@ function parse_command_line
*=*)
echo "$0: ERROR: in -H phase=name, the phase may not contain an = (equal) character: $NAME" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
*/*)
echo "$0: ERROR: in -H phase=name, the phase may not contain a / (slash) character: $NAME" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
*"'"*)
echo "$0: ERROR: in -H phase=name, the phase may not contain a single-quote character: $NAME" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
*'"'*)
echo "$0: ERROR: in -H phase=name, the phase may not contain a double-quote character: $NAME" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
*) ;;
@@ -512,19 +497,19 @@ function parse_command_line
*=*)
echo "$0: ERROR: in -H phase=name, the name may not contain a = (equal) character: $VALUE" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
*"'"*)
echo "$0: ERROR: in -H phase=name, the name may not contain a single-quote character: $VALUE" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
*'"'*)
echo "$0: ERROR: in -H phase=name, the name may not contain a double-quote character: $VALUE" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
*) ;;
@@ -540,7 +525,7 @@ function parse_command_line
done 1>&2
echo "$0: notice: list of valid end above" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
fi
# change phase name
@@ -576,7 +561,7 @@ function parse_command_line
;;
*) echo "$0: ERROR: -s token=value not in -s token=value form" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
esac
@@ -585,19 +570,19 @@ function parse_command_line
*\;*)
echo "$0: ERROR: in -s token=value, the token may not contain a ; (semicolon) character: $NAME" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
*=*)
echo "$0: ERROR: in -s token=value, the token may not contain an = (equal) character: $NAME" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
*%*)
echo "$0: ERROR: in -s token=value, the token may not contain a % (percent) character: $NAME" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
*) ;;
@@ -607,13 +592,13 @@ function parse_command_line
*\;*)
echo "$0: ERROR: in -s token=value, the value may not contain a ; (semicolon) character: $NAME" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
*\&*)
echo "$0: ERROR: in -s token=value, the value may not contain an & (ampersand) character: $NAME" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
*) ;;
@@ -629,7 +614,7 @@ function parse_command_line
if [[ $GETOPT_PHASE -ne 0 && $GETOPT_PHASE -ne 2 ]]; then
echo "$0: ERROR: -o may only be used during getopt phase 0 and 2, current getopt phase: $GETOPT_PHASE" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
fi
#
@@ -657,17 +642,17 @@ function parse_command_line
;;
\?) 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
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
*) echo "$0: ERROR: unexpected value from getopts: $flag" 1>&2
echo 1>&2
print_usage 1>&2
echo "$USAGE" 1>&2
exit 3
;;
esac
+1 -1
View File
@@ -161,7 +161,7 @@ while getopts :hv:Vd:nN 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
+1 -1
View File
@@ -255,7 +255,7 @@ while getopts :hv:Vd:nN 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
+4 -4
View File
@@ -188,7 +188,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
@@ -205,13 +205,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
;;
*) ;;
@@ -226,7 +226,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
+2 -2
View File
@@ -392,7 +392,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
@@ -412,7 +412,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
+1 -1
View File
@@ -211,7 +211,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
+2 -2
View File
@@ -316,7 +316,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
@@ -336,7 +336,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
+4 -4
View File
@@ -199,7 +199,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
@@ -216,13 +216,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
;;
*) ;;
@@ -237,7 +237,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
+4 -4
View File
@@ -188,7 +188,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
@@ -205,13 +205,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
;;
*) ;;
@@ -226,7 +226,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
+1 -1
View File
@@ -179,7 +179,7 @@ while getopts :hv:Vd:nN 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
+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
+1 -1
View File
@@ -201,7 +201,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
+2 -2
View File
@@ -297,7 +297,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
@@ -317,7 +317,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
+2 -2
View File
@@ -255,7 +255,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
@@ -275,7 +275,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
+1 -1
View File
@@ -183,7 +183,7 @@ while getopts :hv:Vd:D:nNU:w: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
+1 -1
View File
@@ -183,7 +183,7 @@ while getopts :hv:Vd:D:nNU:w: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
+2 -2
View File
@@ -208,7 +208,7 @@ while getopts :hv:Vd:D:j:nN 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
@@ -220,7 +220,7 @@ while getopts :hv:Vd:D:j:nN 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
+1 -1
View File
@@ -182,7 +182,7 @@ while getopts :hv:Vd:D:nNU:w: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
+1 -1
View File
@@ -181,7 +181,7 @@ while getopts :hv:Vd:D:nNU:w: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