summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2007-04-19 11:26:47 -0700
committerCarl Worth <cworth@cworth.org>2007-04-25 11:27:32 -0700
commitef5611df6c6bc8d9c6877af3a59c66fa6fc5c13a (patch)
treed1802e0488b1fd0d2a9e7bf36d85fcf6e4fec3e1
parenta8d4fed67a32c6040c27615e063466d654b55a3a (diff)
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).
-rwxr-xr-xperf/cairo-perf-diff2
1 files changed, 1 insertions, 1 deletions
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