From ef5611df6c6bc8d9c6877af3a59c66fa6fc5c13a Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 19 Apr 2007 11:26:47 -0700 Subject: [PATCH] cairo-perf-diff: Fix implementation of --help Previously only "--" would givethe usage, and not "--help" as intended. The new approach has been tested with ash, bash, and dash, (hopefully that's good enough). --- perf/cairo-perf-diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perf/cairo-perf-diff b/perf/cairo-perf-diff index ebc8f55de..c9ce23f6c 100755 --- a/perf/cairo-perf-diff +++ b/perf/cairo-perf-diff @@ -49,7 +49,7 @@ END } # Yes, this ugly ad-hoc option parsing could be cleaned up -if [ $# -eq 0 ] || [ "$1" = "--" ]; then +if [ $# -eq 0 ] || [ "${1#-}" != "$1" ]; then usage fi