-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
!< A testing program for FLAP, Fortran command Line Arguments Parser for poor people | ||
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 |