--- tests/testit.sh.orig 2022-08-24 06:30:21 UTC +++ tests/testit.sh @@ -110,63 +110,6 @@ run test1 "test1 - 56" "arg1: 0 arg2: (none) aFlag: 0x run test1 "test1 - 57" "arg1: 0 arg2: (none) aBits: foo,baz" --bits foo,bar,baz,!bar -run test1 "test1 - 58" "\ -Usage: test1 [-I?] [-c|--cb2=STRING] [--arg1] [-2|--arg2=ARG] - [-3|--arg3=ANARG] [-onedash] [--optional=STRING] [--val] - [-i|--int=INT] [-s|--short=SHORT] [-l|--long=LONG] - [-L|--longlong=LONGLONG] [-f|--float=FLOAT] [-d|--double=DOUBLE] - [--randint=INT] [--randshort=SHORT] [--randlong=LONG] - [--randlonglong=LONGLONG] [--argv=STRING] [--bitset] [--bitclr] - [-x|--bitxor] [--nstr=STRING] [--lstr=STRING] [-I|--inc] - [-c|--cb=STRING] [--longopt] [-?|--help] [--usage] [--simple=ARG]" --usage -run test1 "test1 - 59" "\ -Usage: test1 [OPTION...] - --arg1 First argument with a really long - description. After all, we have to test - argument help wrapping somehow, right? - -2, --arg2=ARG Another argument (default: \"(none)\") - -3, --arg3=ANARG A third argument - -onedash POPT_ARGFLAG_ONEDASH: Option takes a single - - --optional[=STRING] POPT_ARGFLAG_OPTIONAL: Takes an optional - string argument - --val POPT_ARG_VAL: 125992 141421 - -i, --int=INT POPT_ARG_INT: 271828 (default: 271828) - -s, --short=SHORT POPT_ARG_SHORT: 4523 (default: 4523) - -l, --long=LONG POPT_ARG_LONG: 738905609 (default: 738905609) - -L, --longlong=LONGLONG POPT_ARG_LONGLONG: 738905609 (default: - 738905609) - -f, --float=FLOAT POPT_ARG_FLOAT: 3.14159 (default: 3.14159) - -d, --double=DOUBLE POPT_ARG_DOUBLE: 9.8696 (default: 9.8696) - --randint=INT POPT_ARGFLAG_RANDOM: experimental - --randshort=SHORT POPT_ARGFLAG_RANDOM: experimental - --randlong=LONG POPT_ARGFLAG_RANDOM: experimental - --randlonglong=LONGLONG POPT_ARGFLAG_RANDOM: experimental - --argv STRING POPT_ARG_ARGV: append string to argv array - (can be used multiple times) - --[no]bitset POPT_BIT_SET: |= 0x7777 - --[no]bitclr POPT_BIT_CLR: &= ~0xf842 - -x, --bitxor POPT_ARGFLAG_XOR: ^= (0x8ace^0xfeed) - --nstr=STRING POPT_ARG_STRING: (null) (default: null) - --lstr=STRING POPT_ARG_STRING: \"123456789...\" (default: - \"This tests default strings and exceeds the - ... limit. - 123456789+123456789+123456789+123456789+123456789+ 123456789+123456789+123456789+123456789+123456789+ 1234567...\") - -arg for cb2 - -c, --cb2=STRING Test argument callbacks - -I, --inc An included argument - -Callback arguments - -c, --cb=STRING Test argument callbacks - --longopt Unused option for help testing - -Options implemented via popt alias/exec: - --simple=ARG simple description - -Help options: - -?, --help Show this help message - --usage Display brief usage message" --help - run test1 "test1 - 60" "" --val=foo run test1 "test1 - 61" "" -x=f1