Exits after showing help
This commit is contained in:
parent
9498c4259f
commit
588de03313
4
trash
4
trash
@ -15,7 +15,7 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
version="0.3.0 \$Id: trash 2011/03/17 09:58:28 GMT rr@dwaible $"
|
version="0.3.0 \$Id: trash 2011/03/17 10:01:16 GMT rr@dwaible $"
|
||||||
|
|
||||||
function show_usage {
|
function show_usage {
|
||||||
cat << EOU
|
cat << EOU
|
||||||
@ -49,7 +49,7 @@ verbose=""
|
|||||||
while [ $# -gt 0 ]
|
while [ $# -gt 0 ]
|
||||||
do
|
do
|
||||||
case $1 in
|
case $1 in
|
||||||
-h|--help) show_usage ;;
|
-h|--help) show_usage ; exit 1;;
|
||||||
-v|--verbose) verbose="-v" ;;
|
-v|--verbose) verbose="-v" ;;
|
||||||
--version) echo "$0 $version" 1>&2;;
|
--version) echo "$0 $version" 1>&2;;
|
||||||
(--) shift; break;;
|
(--) shift; break;;
|
||||||
|
Loading…
Reference in New Issue
Block a user