From 60bd5f1c459f3f1be6201b13ea5094c4ff1c81db Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Fri, 5 Dec 2008 21:16:22 +0100 Subject: debug output for ask option functions --- src/core/libs/lib-ui.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-54-g00ecf