example-script/example.sh

15 lines
153 B
Bash
Executable File

#! /bin/bash
case "$@" in *--opt-1*|*-h*)
echo OPT_1
exit 0;
esac
case "$@" in *--opt-2*)
echo OPT_2
esac
case "$@" in *--opt-3*)
echo OPT_3
esac