Although I'm not a big fan of Fortran, here is a simple example of parsing Unix-like command line arguments to a program following the modern standard of F2003. Note that the following example also works for any F90/F95 code compiled with gfortran or g95.
Example:
$ ./thisprog -h
usage: ./thisprog [-h] [-a ARG_A] [-b ARG_B] [-c]