summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-ui.sh
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-12-05 21:16:22 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-12-05 21:16:22 +0100
commit60bd5f1c459f3f1be6201b13ea5094c4ff1c81db (patch)
treeb20c92560c918cbc16e9db68afb4149417c5b0a6 /src/core/libs/lib-ui.sh
parentaa0b04044dd43882cfd6f01884727e5608c4ecb2 (diff)
debug output for ask option functions
Diffstat (limited to 'src/core/libs/lib-ui.sh')
-rw-r--r--src/core/libs/lib-ui.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh
index d4520bc..a5c8dec 100644
--- a/src/core/libs/lib-ui.sh
+++ b/src/core/libs/lib-ui.sh
@@ -208,7 +208,7 @@ _dia_ask_option ()
DEFAULT=""
[ "$1" != 'no' ] && DEFAULT="--default-item $1"
[ -z "$2" ] && die_error "ask_option \$2 must be the title"
- [ -z "$6" ] && die_error "ask_option makes only sense if you specify at least 2 things (with tag and name)"
+ [ -z "$6" ] && debug "_dia_ask_option args: $@" && die_error "ask_option makes only sense if you specify at least 2 things (with tag and name)"
DIA_MENU_TITLE=$2
shift 2
@@ -228,7 +228,7 @@ _cli_ask_option ()
DEFAULT=""
[ "$1" != 'no' ] && DEFAULT=$1
[ -z "$2" ] && die_error "ask_option \$2 must be the title"
- [ -z "$6" ] && die_error "ask_option makes only sense if you specify at least 2 things (with tag and name)"
+ [ -z "$6" ] && debug "_cli_ask_option args: $@" && die_error "ask_option makes only sense if you specify at least 2 things (with tag and name)"
CLI_MENU_TITLE=$2
shift 2