diff options
author | 2021-10-02 22:50:41 -0400 | |
---|---|---|
committer | 2021-10-02 22:50:41 -0400 | |
commit | 355abc02714fda77f6cac512bed9c40ae690802d (patch) | |
tree | 80c93dd30363e658bec9a5144a22954c88ec071a | |
parent | do not try to lint missing files (diff) | |
download | build-docbook-catalog-355abc02714fda77f6cac512bed9c40ae690802d.tar.gz build-docbook-catalog-355abc02714fda77f6cac512bed9c40ae690802d.tar.bz2 build-docbook-catalog-355abc02714fda77f6cac512bed9c40ae690802d.zip |
add a --debug option
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-x | build-docbook-catalog | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build-docbook-catalog b/build-docbook-catalog index 0da432a..017ae75 100755 --- a/build-docbook-catalog +++ b/build-docbook-catalog @@ -32,6 +32,7 @@ usage() { Options: -r, --root ROOT path to work on -v, --verbose Be verbose + -x, --debug Run with debugging enabled -h, --help This! EOF [[ $# -gt 0 ]] && eerror "$*" @@ -44,13 +45,14 @@ usage() { main() { local d v opts - opts=$(${GETOPT} -o hr:v --long help,root:,verbose -n "${ZERO}" -- "$@") || exit 1 + opts=$(${GETOPT} -o hr:vx --long help,root:,verbose,debug -n "${ZERO}" -- "$@") || exit 1 eval set -- "${opts}" while true; do case $1 in -h|--help) usage ;; -r|--root) ROOT=$2 ; shift ;; -v|--verbose) VERBOSE=true ;; + -x|--debug) set -x ;; --) break ;; *) usage "options parsing failed on $1!" ;; esac |