|
@@ -96,6 +96,7 @@ saturnin__conf() {
|
96
|
96
|
-P:*) ig_mode=$1; ig_query=""; shift 1; break ;;
|
97
|
97
|
.*:*) warn "bad syntax: $*"; _saturnin__conf_usage ;;
|
98
|
98
|
*.*:*) ig_mode=-e; ig_query=$1; shift 1; break ;;
|
|
99
|
+ --help:*) _saturnin__conf_usage -e 0 ;;
|
99
|
100
|
*) warn "bad syntax: $*"; _saturnin__conf_usage ;;
|
100
|
101
|
esac done
|
101
|
102
|
test -n "$ig_mode" || { warn "could not determine inigrep mode"; _saturnin__conf_usage; }
|
|
@@ -362,7 +363,8 @@ _saturnin__conf_usage() {
|
362
|
363
|
# Show usage message and exit
|
363
|
364
|
#
|
364
|
365
|
PRETTY_USAGE="self=${0##*/} conf" \
|
365
|
|
- mkusage "[options] [-e] SECTION.KEY [FNAME]" \
|
|
366
|
+ mkusage "$@" \
|
|
367
|
+ "[options] [-e] SECTION.KEY [FNAME]" \
|
366
|
368
|
"[options] -r SECTION.KEY [FNAME]" \
|
367
|
369
|
"[options] -K SECTION [FNAME]" \
|
368
|
370
|
"[options] -P FNAME" \
|