From b67bf6e038a62adaaaafaf2aa520a9f2fc6a2113 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 23 Nov 2014 15:02:58 +0300 Subject: [PATCH] Behave in a sane way in ZXing wrapper when user gives --help argument --- pkgs/tools/graphics/zxing/zxing.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/tools/graphics/zxing/zxing.sh b/pkgs/tools/graphics/zxing/zxing.sh index 1d473236e94..ca6ac60bab6 100644 --- a/pkgs/tools/graphics/zxing/zxing.sh +++ b/pkgs/tools/graphics/zxing/zxing.sh @@ -8,4 +8,11 @@ case "$choice" in decode | read | run | CommandLineRunner) zxing-cmdline-runner "$@"; ;; + help | usage | --help | --usage | -h) + zxing read; + zxing write; + ;; + *) + zxing read "$choice" "$@" + ;; esac