]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/opt.t
Opt: opt_failure() is public, opt_usage() not so
[libucw.git] / ucw / opt.t
index aeafd199ac8baedd3bec86d91be659f1b5805a99..26c9ab371384a8d9c6bf4ef9065a6bf66544e10d 100644 (file)
--- a/ucw/opt.t
+++ b/ucw/opt.t
@@ -4,7 +4,7 @@ Name:   Opt-1
 Run:   ../obj/ucw/opt-test 2>&1 1>/dev/null
 Exit:  2
 Out:   Required option -t/--temperature not found.
-       Run with argument --help for more information.
+       Run with --help for more information.
 
 Name:  Opt-2
 Run:   ../obj/ucw/opt-test -t95C -w640 -gG darjeeling
@@ -22,7 +22,7 @@ Name: Opt-5
 Run:   ../obj/ucw/opt-test -ghx 2>&1 1>/dev/null
 Exit:  2
 Out:   Multiple switches: -h
-       Run with argument --help for more information.
+       Run with --help for more information.
 
 Name:  Opt-6
 Run:   ../obj/ucw/opt-test -t120F -w4 -b15 -he -- --puerh darjeeling earl-grey
@@ -33,10 +33,10 @@ Run:        ../obj/ucw/opt-test -t120F -w4 -b15 -b54 -he -- --puerh darjeeling earl-gre
 Out:   English style: yes|Chosen teapot: hands|Temperature: 120F|Verbosity: 1|Black magic: 15|Black magic: 54|Prayer: no|Water amount: 4|Gas: no|First tea: --puerh|Boiling a tea: darjeeling|Boiling a tea: earl-grey|Everything OK. Bye.
 
 Name:  Opt-Conf-1
-Run:   ../obj/ucw/opt-test -h --dumpconfig 2>&1 1>/dev/null
+Run:   ../obj/ucw/opt-test -h -SX.Y=Z 2>&1 1>/dev/null
 Exit:  2
-Out:   Config options (-C, -S) must stand before other options.
-       Run with argument --help for more information.
+Out:   Config options must stand before other options.
+       Run with --help for more information.
 
 Name:  Opt-Hook-1
 Run:   ../obj/ucw/opt-test -Ht 95C -w640 -gG darjeeling