Skip to content

Commit

Permalink
FLAGS_PARENT no longer transforms into constant
Browse files Browse the repository at this point in the history
git-svn-id: http://shflags.googlecode.com/svn/trunk/source/1.0@47 9d7cb843-df4f-0410-8a79-4785ae5a3405
  • Loading branch information
kate.ward@forestent.com committed Jul 18, 2008
1 parent 4e79d0e commit 52d365d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 7 additions & 0 deletions doc/CHANGES-1.0.txt
@@ -1,6 +1,13 @@
Changes in shFlags 1.0.x
========================

Changes with 1.0.2
------------------

FLAGS_PARENT no longer transforms into a constant so that it can be defined at
run time in scripts.


Changes with 1.0.1
------------------

Expand Down
6 changes: 2 additions & 4 deletions src/shflags
Expand Up @@ -67,7 +67,7 @@

# return if FLAGS already loaded
[ -n "${FLAGS_VERSION:-}" ] && return 0
FLAGS_VERSION='1.0.1'
FLAGS_VERSION='1.0.2pre'

_flags_debug() { echo "flags:DEBUG $@" >&2; }
_flags_error() { echo "flags:ERROR $@" >&2; }
Expand Down Expand Up @@ -107,8 +107,6 @@ unset _flags_shellFlag
# constants
#

__FLAGS_PARENT=${FLAGS_PARENT:-$0}

# getopt version
__FLAGS_GETOPT_VERS_STD=0
__FLAGS_GETOPT_VERS_ENH=1
Expand Down Expand Up @@ -767,7 +765,7 @@ flags_help()
if [ -n "${FLAGS_HELP:-}" ]; then
echo "${FLAGS_HELP}" >&2
else
echo "USAGE: ${__FLAGS_PARENT} [flags] args" >&2
echo "USAGE: ${FLAGS_PARENT:-$0} [flags] args" >&2
fi
if [ -n "${__flags_longNames}" ]; then
echo 'flags:' >&2
Expand Down

0 comments on commit 52d365d

Please sign in to comment.