I am having a hard time figuring out how to handle a set of paramters in bash:
The script contains mandatory options to set when running it, and those options then have their own parameters that I would like the script to handle in a case specific manner.
script.sh -extension -render -r[1-99] -directory /path/
or
script.sh -extension -export -e[1-99] -directory /path/
if I am to pass the render option, i would like the script to iterate and validate the options that are only specific to the rendering parameter (r1, r2, r3,...) and vice versa for the export feature.
Meaning, running -render -e[n] would throw an error and/or prompt the user to choose the appropriate sub-option or default to a preset that is already there.