mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-05 09:58:50 +03:00
57b496ea98
I've tried to be consistent, using four or eight spaces to line up with existing code.
19 lines
387 B
Bash
19 lines
387 B
Bash
#! /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
|