diff options
author | kate.ward <kate.ward@forestent.com> | 2008-08-28 21:18:21 +0000 |
---|---|---|
committer | kate.ward <kate.ward@forestent.com> | 2008-08-28 21:18:21 +0000 |
commit | b7fa8d622e4343e719b09808b38589a693732789 (patch) | |
tree | 42e65802df48b1f5376274a04acfa43748e86afd /source/1.0/src/shflags | |
parent | 4d8e047e1269767ded77327e844195e38c37ec0b (diff) | |
download | shflags-b7fa8d622e4343e719b09808b38589a693732789.tar.gz |
added warning about short flags during getopt parse failure
Diffstat (limited to 'source/1.0/src/shflags')
-rw-r--r-- | source/1.0/src/shflags | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/1.0/src/shflags b/source/1.0/src/shflags index 8f1cff5..d910432 100644 --- a/source/1.0/src/shflags +++ b/source/1.0/src/shflags @@ -70,6 +70,7 @@ FLAGS_VERSION='1.0.2pre' _flags_debug() { echo "flags:DEBUG $@" >&2; } +_flags_warn() { echo "flags:WARN $@" >&2; } _flags_error() { echo "flags:ERROR $@" >&2; } _flags_fatal() { echo "flags:FATAL $@" >&2; } @@ -552,6 +553,7 @@ FLAGS() -- "$@" 2>&1` fi if [ $? -ne 0 ]; then + _flags_warn 'getopt on this platform supports only short flags.' flags_error='unable to parse provided options with getopt.' _flags_return=${FLAGS_ERROR} fi |