1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
nixpkgs/pkgs/tools/graphics/zxing/zxing.sh

19 lines
321 B
Bash
Raw Normal View History

#! /bin/sh
choice="$1";
shift
case "$choice" in
encode | create | write | CommandLineEncoder)
zxing-cmdline-encoder "$@";
;;
decode | read | run | CommandLineRunner)
zxing-cmdline-runner "$@";
;;
help | usage | --help | --usage | -h)
zxing read;
zxing write;
;;
*)
zxing read "$choice" "$@"
;;
esac