I already know about getopts, and this is fine, but it is annoying that you have to have a flag even for mandatory arguments.
Ideally, I\'d like to be able to have a scr
If you are using getops, just shift by $OPTIND-1 after your case statement. Then what is left in $* will be everything else, which is probably what you want.
$OPTIND-1
$*
shift $(( ${OPTIND} - 1 )); echo "${*}"