aboutsummaryrefslogtreecommitdiff
path: root/source/1.0/src/shflags
diff options
context:
space:
mode:
authorkate.ward <kate.ward@forestent.com>2008-07-11 20:32:11 +0000
committerkate.ward <kate.ward@forestent.com>2008-07-11 20:32:11 +0000
commitf08c5b68b8288af85aaf99c7ab404027da14e5d6 (patch)
tree954a2759f5ec32090794b3d64185ac2a0501108c /source/1.0/src/shflags
parent58da2019dbac58c62ca8763e34e9e99addff0e8e (diff)
downloadshflags-f08c5b68b8288af85aaf99c7ab404027da14e5d6.tar.gz
fixed help flag definition in zsh 3.0.8
Diffstat (limited to 'source/1.0/src/shflags')
-rw-r--r--source/1.0/src/shflags9
1 files changed, 3 insertions, 6 deletions
diff --git a/source/1.0/src/shflags b/source/1.0/src/shflags
index 0e34287..5a01f3e 100644
--- a/source/1.0/src/shflags
+++ b/source/1.0/src/shflags
@@ -520,6 +520,9 @@ FLAGS()
{
_flags_return=${FLAGS_TRUE}
+ # define standard 'help' flag
+ DEFINE_boolean 'help' false 'show this help' 'h'
+
FLAGS_ARGC=0
_flags_shortOpts=`_flags_genOptStr ${__FLAGS_OPTSTR_SHORT}`
_flags_longOpts='' # generated later only when needed
@@ -829,9 +832,6 @@ flags_reset()
__flags_longNames=' '
__flags_shortNames=' '
- # define standard 'help' flag
- DEFINE_boolean 'help' false 'show this help' 'h'
-
unset _flags_name _flags_type _flags_strToEval
}
@@ -839,9 +839,6 @@ flags_reset()
# main
#
-# define standard 'help' flag
-DEFINE_boolean 'help' false 'show this help' 'h'
-
# restore the previous set of shell flags
for _flags_shellFlag in ${__FLAGS_SHELL_FLAGS}; do
echo ${_flags_oldShellFlags} |grep ${_flags_shellFlag} >/dev/null || \