From 2d540bd1ef17a9b28f208254d5c569cbcf75cd2f Mon Sep 17 00:00:00 2001 From: mes5k Date: Mon, 22 Dec 2003 02:09:32 +0000 Subject: [PATCH] updates --- tests/test10.out | 2 +- tests/test11.out | 2 +- tests/test12.out | 2 +- tests/test13.out | 10 +++------- tests/test14.out | 14 +++++-------- tests/test15.out | 52 ++++++++++++++++++++++++++++++++++++++---------- tests/test16.out | 11 ++++++---- tests/test4.out | 2 +- 8 files changed, 60 insertions(+), 35 deletions(-) diff --git a/tests/test10.out b/tests/test10.out index cb229d6..e21e65e 100644 --- a/tests/test10.out +++ b/tests/test10.out @@ -1,4 +1,4 @@ -PARSE ERROR: for argument: undefined +PARSE ERROR: One or more required arguments missing! diff --git a/tests/test11.out b/tests/test11.out index 62336b5..671980b 100644 --- a/tests/test11.out +++ b/tests/test11.out @@ -1,4 +1,4 @@ -PARSE ERROR: for argument: -i (--intTest) +PARSE ERROR: Argument: -i (--intTest) Argument already set! diff --git a/tests/test12.out b/tests/test12.out index 871d718..bfa19a9 100644 --- a/tests/test12.out +++ b/tests/test12.out @@ -1,4 +1,4 @@ -PARSE ERROR: for argument: -f (--floatTest) +PARSE ERROR: Argument: -f (--floatTest) Couldn't read argument value! diff --git a/tests/test13.out b/tests/test13.out index b24d813..076f079 100644 --- a/tests/test13.out +++ b/tests/test13.out @@ -1,11 +1,7 @@ [-i] 0 9 [-i] 1 8 -[ ] 0 marge -[ ] 1 bart -for float we got : 0 -for int we got : 0 +[ ] 0 bart for string we got : bill -for ulabeled we got : homer -for bool A we got : 0 +for ulabeled one we got : homer +for ulabeled two we got : marge for bool B we got : 1 -for bool C we got : 0 diff --git a/tests/test14.out b/tests/test14.out index ded8156..404d810 100644 --- a/tests/test14.out +++ b/tests/test14.out @@ -1,11 +1,7 @@ -[ ] 0 marge -[ ] 1 bart -[ ] 2 one -[ ] 3 two -for float we got : 0 -for int we got : 0 +[ ] 0 bart +[ ] 1 one +[ ] 2 two for string we got : aaa -for ulabeled we got : homer -for bool A we got : 0 +for ulabeled one we got : homer +for ulabeled two we got : marge for bool B we got : 0 -for bool C we got : 0 diff --git a/tests/test15.out b/tests/test15.out index 21596eb..82d0abd 100644 --- a/tests/test15.out +++ b/tests/test15.out @@ -1,11 +1,41 @@ -[ ] 0 marge -[ ] 1 bart -[ ] 2 -hv -[ ] 3 two -for float we got : 0 -for int we got : 0 -for string we got : bbb -for ulabeled we got : homer -for bool A we got : 0 -for bool B we got : 0 -for bool C we got : 0 +PARSE ERROR: Argument: -s (--stringTest) + Couldn't find delimiter for this argument! + + +USAGE: + + ../examples/test3 [-i=] ... -s= [-B] [--] [-v] [-h] ... + +Where: + + -i , --intTest (accepted multiple times) + (value required) multi int test + + -s , --stringTest + (required) (value required) string test + + -B, --existTest B + exist Test B + + --, --ignore_rest + Ignores the rest of the labeled arguments following this flag. + + -v, --version + Displays version information and exits. + + -h, --help + Displays usage information and exits. + + + (required) (value required) unlabeled test one + + + (required) (value required) unlabeled test two + + (accepted multiple times) + (value required) file names + + + +this is a message + diff --git a/tests/test16.out b/tests/test16.out index d4e71cf..82d0abd 100644 --- a/tests/test16.out +++ b/tests/test16.out @@ -1,10 +1,10 @@ -PARSE ERROR: for argument: -B (--existTest B) - Argument already set! +PARSE ERROR: Argument: -s (--stringTest) + Couldn't find delimiter for this argument! USAGE: - ../examples/test3 [-i ] ... -s [-B] [--] [-v] [-h] ... + ../examples/test3 [-i=] ... -s= [-B] [--] [-v] [-h] ... Where: @@ -27,7 +27,10 @@ Where: Displays usage information and exits. - (required) (value required) unlabeld test + (required) (value required) unlabeled test one + + + (required) (value required) unlabeled test two (accepted multiple times) (value required) file names diff --git a/tests/test4.out b/tests/test4.out index ba796f0..7255994 100644 --- a/tests/test4.out +++ b/tests/test4.out @@ -1,4 +1,4 @@ -PARSE ERROR: for argument: undefined +PARSE ERROR: One or more required arguments missing!