|
@@ -142,10 +142,6 @@ saturnin__get() {
|
142
|
142
|
exit "$EXIT_OK"
|
143
|
143
|
}
|
144
|
144
|
|
145
|
|
-saturnin__help() {
|
146
|
|
- saturnin__usage --wanted
|
147
|
|
-}
|
148
|
|
-
|
149
|
145
|
saturnin__lssc() {
|
150
|
146
|
#
|
151
|
147
|
# List subcommands
|
|
@@ -164,7 +160,7 @@ saturnin__main() {
|
164
|
160
|
while true; do case $1 in
|
165
|
161
|
-d|--debug) export PRETTY_DEBUG=true; shift ;;
|
166
|
162
|
-v|--verbose) export PRETTY_VERBOSE=true; shift ;;
|
167
|
|
- -h|--help) saturnin__help; exit ;;
|
|
163
|
+ -h|--help) saturnin__usage -e 0; exit ;;
|
168
|
164
|
--version) saturnin__version; exit ;;
|
169
|
165
|
--version-semver) saturnin__get app-version ;;
|
170
|
166
|
--saturnin-get-*) saturnin__get "$1" ;;
|
|
@@ -251,10 +247,8 @@ saturnin__runsc() {
|
251
|
247
|
}
|
252
|
248
|
|
253
|
249
|
saturnin__usage() {
|
254
|
|
- local es_param # exit-status related arguments
|
255
|
|
- test "$1" == "--wanted" && es_param="-e 0"
|
256
|
|
- #shellcheck disable=SC2086 disable=SC2046
|
257
|
|
- mkusage $es_param \
|
|
250
|
+ #shellcheck disable=SC2046
|
|
251
|
+ mkusage "$@" \
|
258
|
252
|
"[options] COMMAND [ARG...]" \
|
259
|
253
|
-o \
|
260
|
254
|
"-d, --debug turn on debugging" \
|