I have to write a bash script:
schedsim.sh [-h] [-c #CPUs ] -i pathfile
h and c are optional options. i is required, when run script if it doesn't have i option -> error message.
How to make a required option in getopts? Thanks!
another question: how to make default value for an argument of option? say, if c isn't provided argument -> default value of argument of c is 1.