|
|
|
|
142
|
# usage patterns once and skip to them from any place where
|
142
|
# usage patterns once and skip to them from any place where
|
143
|
# you detect incorrect usage.
|
143
|
# you detect incorrect usage.
|
144
|
#
|
144
|
#
|
145
|
- local es=$EXIT_USAGE
|
|
|
146
|
- local doexit=true
|
|
|
|
|
145
|
+ local es=$EXIT_USAGE # our exit status
|
|
|
146
|
+ local doexit=true # should we exit?
|
147
|
while true; do case "$1" in
|
147
|
while true; do case "$1" in
|
148
|
-e) es="$2"; shift 2 || return 2 ;;
|
148
|
-e) es="$2"; shift 2 || return 2 ;;
|
149
|
-E) doexit=false; shift ;;
|
149
|
-E) doexit=false; shift ;;
|