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:
1 parent
35038a63bd
commit
cad665c021
36 files changed
+103
-118
No files matched your search
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user