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
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user