diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2009-02-28 15:17:45 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-02-28 15:17:45 +0100 |
commit | d2223b6d9806427c50d5fab4ee7bf919c98d0fd1 (patch) | |
tree | 1b757bf8e0fddfdac55c9a7557b42b7b14a0ee0d /tests | |
parent | 805b28608f764f84f6a3a50fb4ebf5aa4a9c9b24 (diff) |
ask_option now supports optional (skippable) and required menus. labels and exit codes are applied differently
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-menus.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/test-menus.sh b/tests/test-menus.sh index 9288ff6..4d0bd25 100644 --- a/tests/test-menus.sh +++ b/tests/test-menus.sh @@ -4,9 +4,15 @@ ANSWER="/tmp/.dialog-answer" var_UI_TYPE=dia -ask_option no 'menu title is this yes yes' 'extra explanation is here mkay' tagA itemA "tag B" 'item B' tag-c item\ C +ask_option no 'menu title is this yes yes' 'extra explanation is here mkay OPTIONAL' optional tagA itemA "tag B" 'item B' tag-c item\ C +echo "return code was $?" + +ask_option no 'menu title is this yes yes' 'extra explanation is here mkay REQUIRED' required tagA itemA "tag B" 'item B' tag-c item\ C echo "return code was $?" var_UI_TYPE=cli -ask_option tag-c 'menu title is this yes yes' 'extra explanation is here mkay' tagA itemA "tag B" 'item B' tag-c item\ C -echo "return code was $?"
\ No newline at end of file +ask_option tag-c 'menu title is this yes yes' 'extra explanation is here mkay OPTIONAL' optional tagA itemA "tag B" 'item B' tag-c item\ C +echo "return code was $?" + +ask_option tag-c 'menu title is this yes yes' 'extra explanation is here mkay REQUIRED' required tagA itemA "tag B" 'item B' tag-c item\ C +echo "return code was $?" |