|
@@ -449,32 +449,33 @@ _saturnin__conf_usage() {
|
449
|
449
|
# Show usage message and exit
|
450
|
450
|
#
|
451
|
451
|
PRETTY_USAGE="self=${0##*/} conf" \
|
452
|
|
- mkusage "$@" \
|
453
|
|
- "[options] [-e] SECTION.KEY [FNAME]" \
|
454
|
|
- "[options] -r SECTION.KEY [FNAME]" \
|
455
|
|
- "[options] -K SECTION [FNAME]" \
|
456
|
|
- "[options] -P FNAME" \
|
457
|
|
- "[options] -S FNAME" \
|
458
|
|
- -- \
|
459
|
|
- "Use inigrep to query config files." \
|
460
|
|
- -o \
|
461
|
|
- "-j join all files before applying query" \
|
462
|
|
- "-1 ensure single line is returned" \
|
463
|
|
- -c \
|
464
|
|
- "-e use normal mode (default)" \
|
465
|
|
- "-r use raw mode (preserves RHS whitespace and some comments)" \
|
466
|
|
- "-K list available keys in SECTION" \
|
467
|
|
- "-S list available sections in FNAME" \
|
468
|
|
- "-P list available keypaths (SECTION.KEY) in FNAME" \
|
469
|
|
- -- \
|
470
|
|
- "FNAME is filename, which is then searched on all paths specified" \
|
471
|
|
- "in SATURNIN_CONF_PATH and depending on -j parameter, first one" \
|
472
|
|
- "wins or all are joined. If FNAME contains slash, this search is" \
|
473
|
|
- "not done and FNAME is taken as path to file that is then queried."\
|
474
|
|
- "" \
|
475
|
|
- "If FNAME is omitted, it is inferred from SECTION (e.g. .'foo.ini'"\
|
476
|
|
- "if 'foo.bar' was section name; note that section name may contain"\
|
477
|
|
- "dot)."
|
|
452
|
+ mkusage "$@" \
|
|
453
|
+ "[options] [-e] SECTION.KEY [FNAME]" \
|
|
454
|
+ "[options] -r SECTION.KEY [FNAME]" \
|
|
455
|
+ "[options] -K SECTION [FNAME]" \
|
|
456
|
+ "[options] -P FNAME" \
|
|
457
|
+ "[options] -S FNAME" \
|
|
458
|
+ -- \
|
|
459
|
+ "Use inigrep to query config files." \
|
|
460
|
+ -o \
|
|
461
|
+ "-j join all files before applying query" \
|
|
462
|
+ "-1 ensure single line is returned" \
|
|
463
|
+ -c \
|
|
464
|
+ "-e use normal mode (default)" \
|
|
465
|
+ "-r use raw mode (preserves RHS whitespace and some comments)"\
|
|
466
|
+ "-K list available keys in SECTION" \
|
|
467
|
+ "-S list available sections in FNAME" \
|
|
468
|
+ "-P list available keypaths (SECTION.KEY) in FNAME" \
|
|
469
|
+ -- \
|
|
470
|
+ "FNAME is filename, which is then searched on all paths specified"\
|
|
471
|
+ "in SATURNIN_CONF_PATH and depending on -j parameter, first one" \
|
|
472
|
+ "wins or all are joined. If FNAME contains slash, this search is"\
|
|
473
|
+ "not done and FNAME is taken as path to file that is then" \
|
|
474
|
+ "queried." \
|
|
475
|
+ "" \
|
|
476
|
+ "If FNAME is omitted, it is inferred from SECTION (e.g. 'foo.ini'"\
|
|
477
|
+ "if 'foo.bar' was section name; note that section name itself may"\
|
|
478
|
+ "contain dot)."
|
478
|
479
|
}
|
479
|
480
|
|
480
|
481
|
_saturnin__nl2colon() {
|