diff options
author | kate.ward <kate.ward@forestent.com> | 2008-07-11 20:32:11 +0000 |
---|---|---|
committer | kate.ward <kate.ward@forestent.com> | 2008-07-11 20:32:11 +0000 |
commit | f08c5b68b8288af85aaf99c7ab404027da14e5d6 (patch) | |
tree | 954a2759f5ec32090794b3d64185ac2a0501108c /source/1.0/src/shflags_test_public.sh | |
parent | 58da2019dbac58c62ca8763e34e9e99addff0e8e (diff) | |
download | shflags-f08c5b68b8288af85aaf99c7ab404027da14e5d6.tar.gz |
fixed help flag definition in zsh 3.0.8
Diffstat (limited to 'source/1.0/src/shflags_test_public.sh')
-rwxr-xr-x | source/1.0/src/shflags_test_public.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/1.0/src/shflags_test_public.sh b/source/1.0/src/shflags_test_public.sh index 933e596..5bdceb0 100755 --- a/source/1.0/src/shflags_test_public.sh +++ b/source/1.0/src/shflags_test_public.sh @@ -78,16 +78,16 @@ testStandardHelpOutput() DEFINE_boolean test_bool false 'test boolean' b DEFINE_string test_str '' 'test string' s - FLAGS_HELP='USAGE: standard [flags] args' + help='USAGE: standard [flags] args' cat >"${expectedF}" <<EOF USAGE: standard [flags] args flags: - -h show this help -b test boolean -s test string + -h show this help EOF - ( FLAGS -h >"${stdoutF}" 2>"${stderrF}" ) + ( FLAGS_HELP=${help}; FLAGS -h >"${stdoutF}" 2>"${stderrF}" ) diff "${expectedF}" "${stderrF}" >/dev/null rtrn=$? assertTrue 'unexpected help output' ${rtrn} @@ -102,16 +102,16 @@ testEnhancedHelpOutput() DEFINE_boolean test_bool false 'test boolean' b DEFINE_string test_str '' 'test string' s - FLAGS_HELP='USAGE: enhanced [flags] args' + help='USAGE: standard [flags] args' cat >"${expectedF}" <<EOF USAGE: enhanced [flags] args flags: - -h,--[no]help: show this help -b,--[no]test_bool: test boolean -s,--test_str: test string + -h,--[no]help: show this help EOF - ( FLAGS -h >"${stdoutF}" 2>"${stderrF}" ) + ( FLAGS_HELP=${help}; FLAGS -h >"${stdoutF}" 2>"${stderrF}" ) diff "${expectedF}" "${stderrF}" >/dev/null rtrn=$? assertTrue 'short flag help; unexpected help output' ${rtrn} @@ -125,11 +125,11 @@ EOF cat >"${expectedF}" <<EOF USAGE: enhanced [flags] args flags: - -h,--[no]help: show this help -b,--[no]test_bool: test boolean -s,--test_str: test string + -h,--[no]help: show this help EOF - ( FLAGS --help >"${stdoutF}" 2>"${stderrF}" ) + ( FLAGS_HELP=${help}; FLAGS --help >"${stdoutF}" 2>"${stderrF}" ) diff "${expectedF}" "${stderrF}" >/dev/null rtrn=$? assertTrue 'long flag help; unexpected help output' ${rtrn} |