CLA-F90

cla.f90 is a module for parsing command-line arguments in Fortran-90.

Features:

Usage Example

use cla
...
call cla_init
call cla_register(key='--input',description='input file',kind=cla_char,default='../prm/grid')
call cla_register(key='-q',     description='quiet flag',kind=cla_flag,default='f'          )

call cla_validate
call cla_get('-q',     lquiet)       ! set lquiet to .true. if -q is present
call cla_get('--input',cfname)       ! set cfname to input filename
...

Download

Grab the compressed tar file: [[http://maki.cee.pdx.edu/~ezaron/CLAF90/claf90.tgz][claf90.tgz]

Acknowledgement

This software was developed with support from the Naval Research Laboratory (Grant #N00173-08-2-C015) and NASA (Grant #NNX13AH06G).