Define cmdline arguments in cmdargs.f. Fix -gr switch.