A testing program for FLAP, Fortran command Line Arguments Parser for poor people
See compile instructions.
See usage instructions.
Type | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|
type(command_line_interface) | :: | cli |
Command Line Interface (CLI). |
|||
real(kind=R8P) | :: | rval |
Real value. |
|||
integer(kind=I4P) | :: | error |
Error trapping flag. |
program flap_test_duplicated_clas !< A testing program for FLAP, Fortran command Line Arguments Parser for poor people !< !<### Compile !< See [compile instructions](https://github.com/szaghi/FLAP/wiki/Download-compile). !< !<###Usage Compile !< See [usage instructions](https://github.com/szaghi/FLAP/wiki/Testing-Programs). use flap, only : command_line_interface use penf implicit none type(command_line_interface) :: cli !< Command Line Interface (CLI). real(R8P) :: rval !< Real value. integer(I4P) :: error !< Error trapping flag. call cli%init(progname='test_duplicated_clas', description='Test passed duplicated CLAS') call cli%add(switch='--i', switch_ab='-i', help='input', required=.true., act='store', error=error) ; if (error/=0) stop call cli%get(switch='-i', val=rval, error=error) ; if (error/=0) stop print '(A)' ,'Input = '//trim(str(n=rval)) endprogram flap_test_duplicated_clas