Browse Source

Add stronger debugging

Alois Mahdal 7 years ago
parent
commit
884db759da
2 changed files with 5 additions and 0 deletions
  1. 4
    0
      src/saturnin.sh.skel
  2. 1
    0
      tests/cli/oracle/usage.stderr

+ 4
- 0
src/saturnin.sh.skel View File

272
     test -n "$SATURNIN_LIBEXEC"        || die "SATURNIN_LIBEXEC is not set"
272
     test -n "$SATURNIN_LIBEXEC"        || die "SATURNIN_LIBEXEC is not set"
273
     test -n "$SATURNIN_LIBEXEC_PREFIX" || die "SATURNIN_LIBEXEC_PREFIX is not set"
273
     test -n "$SATURNIN_LIBEXEC_PREFIX" || die "SATURNIN_LIBEXEC_PREFIX is not set"
274
     while true; do case $1 in
274
     while true; do case $1 in
275
+        -D|--full-debug) export PRETTY_DEBUG=true
276
+                        export PRETTY_DEBUG_EXCLUDE=""
277
+                                                    shift ;;
275
         -d|--debug)     export PRETTY_DEBUG=true;   shift ;;
278
         -d|--debug)     export PRETTY_DEBUG=true;   shift ;;
276
         -v|--verbose)   export PRETTY_VERBOSE=true; shift ;;
279
         -v|--verbose)   export PRETTY_VERBOSE=true; shift ;;
277
         -h|--help)      saturnin__help;             exit  ;;
280
         -h|--help)      saturnin__help;             exit  ;;
414
     mkusage "$@"                                            \
417
     mkusage "$@"                                            \
415
             "[options] COMMAND [ARG...]"                    \
418
             "[options] COMMAND [ARG...]"                    \
416
         -o                                                  \
419
         -o                                                  \
420
+            "-D, --full-debug   turn on gory debugging"     \
417
             "-d, --debug    turn on debugging"              \
421
             "-d, --debug    turn on debugging"              \
418
             "-h, --help     show this help message and exit"\
422
             "-h, --help     show this help message and exit"\
419
             "-v, --verbose  turn on verbosity"              \
423
             "-v, --verbose  turn on verbosity"              \

+ 1
- 0
tests/cli/oracle/usage.stderr View File

2
   saturnin__usage [options] COMMAND [ARG...]
2
   saturnin__usage [options] COMMAND [ARG...]
3
 
3
 
4
 options:
4
 options:
5
+  -D, --full-debug   turn on gory debugging
5
   -d, --debug    turn on debugging
6
   -d, --debug    turn on debugging
6
   -h, --help     show this help message and exit
7
   -h, --help     show this help message and exit
7
   -v, --verbose  turn on verbosity
8
   -v, --verbose  turn on verbosity