diff --git a/pkgs/additional/sane-open/sane-open b/pkgs/additional/sane-open/sane-open index eb4aaa187..45791f9b1 100755 --- a/pkgs/additional/sane-open/sane-open +++ b/pkgs/additional/sane-open/sane-open @@ -196,28 +196,28 @@ while [ $# -gt 0 ]; do arg="$1" shift case "$arg" in - "--auto-keyboard") - autoKeyboard=1 - ;; - "--help") - usage 0 - ;; - "--application") + ("--application") resourceType="application" ;; - "--debug") + ("--auto-keyboard") + autoKeyboard=1 + ;; + ("--debug") SANE_OPEN_DEBUG=1 ;; - "--desktop-file") + ("--desktop-file") resourceType="desktopFile" ;; - "--file") + ("--help") + usage 0 + ;; + ("--file") resourceType="file" ;; - "--uri") + ("--uri") resourceType="uri" ;; - *) + (*) if [ $# -ne 0 ]; then usage 1 fi