mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-06 02:40:19 +01:00
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).
This commit is contained in:
parent
a8d4fed67a
commit
ef5611df6c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue