2014-11-23 00:35:04 +01:00
|
|
|
#! /bin/sh
|
|
|
|
choice="$1";
|
|
|
|
shift
|
|
|
|
case "$choice" in
|
|
|
|
encode | create | write | CommandLineEncoder)
|
|
|
|
zxing-cmdline-encoder "$@";
|
|
|
|
;;
|
|
|
|
decode | read | run | CommandLineRunner)
|
|
|
|
zxing-cmdline-runner "$@";
|
|
|
|
;;
|
2014-11-23 13:02:58 +01:00
|
|
|
help | usage | --help | --usage | -h)
|
|
|
|
zxing read;
|
|
|
|
zxing write;
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
zxing read "$choice" "$@"
|
|
|
|
;;
|
2014-11-23 00:35:04 +01:00
|
|
|
esac
|