1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/sh SCRIPT=$(basename "$0") OPTIONS=$(getopt -o h -l help -n "$SCRIPT" -- "$@") if [ $? != 0 ]; then exit 1; fi eval set -- "$OPTIONS" while true; do case "$1" in -h | --help ) echo "$SCRIPT [-h] <infile> <outfile>" exit 0 ;; --) shift; break;; esac shift done exec /usr/bin/mono /opt/YTSubConverter/YTSubConverter.exe $@