I\'d like to use getopts inside a function that I have defined in my .bash_profile. The idea is I\'d like to pass in some flags to this function to alter its be
getopts
The argument is stored in the varable $OPTARG.
$OPTARG
function t() { echo $* getopts "a:" OPTION echo $OPTION echo $OPTARG }
Output:
$ t -a bc -a bc a bc