HP Fortran Programmer's Guide (September 2007)

Writing HP-UX applications
Accessing command-line arguments
Chapter 7168
$ f90 get_args.f90
$ a.out perambulation of a different sort
this program produces the following output:
13
perambulation
5
For more information about the IGETARG and IARGC intrinsics, see the
HP Fortran Programmer's Reference. GETARGC is also available as a libU77 routine; see the
HP Fortran Programmer's Reference.