about summary refs log tree commit diff
path: root/pkgs/tools/graphics/zxing/zxing.sh
blob: a38558d87026d95b03b93e27f134fbe09e0c9249 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /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