File: demo_get_args_fixed_length.f90

package info (click to toggle)
fortran-cli2 3.2.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,856 kB
  • sloc: f90: 6,172; javascript: 3,423; makefile: 189; sh: 25
file content (14 lines) | stat: -rwxr-xr-x 429 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
      program demo_get_args_fixed_length
      use M_CLI2,  only : set_args, get_args_fixed_length
      implicit none

       ! Define args
      character(len=80)   :: title
       ! Parse command line
      call set_args(' --title "my title" ')
       ! Assign values to variables
      call get_args_fixed_length('title',title)
       ! Use values
      write(*,*)'title=',title

      end program demo_get_args_fixed_length