Behave in a sane way in ZXing wrapper when user gives --help argument

This commit is contained in:
Michael Raskin 2014-11-23 15:02:58 +03:00
parent 1be6e7c60f
commit b67bf6e038

View File

@ -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