What is the best way to parse parameters in shell script command, and then validate it?
For example bash someScript.sh -p <some_path> -o <some_other_param> -i (User forget to provide value)
.
How to parse all of this parameters and when user forget to input some parameters or value of this parameter show some error message and terminate executing of script?