demo_get_args_fixed_length – M_CLI2
Author: John S. Urban
Description: command line parsing

# demo_get_args_fixed_length Program

- 8 statements
- Source File

### Uses

- - M_CLI2

### Contents

### Variables

title

### Source Code

demo_get_args_fixed_length

## Variables

Type | Attributes |  | Name |  | Initial |
--- | --- | --- | --- | --- | --- | ---
character(len=80) |  | :: | title |  |  |

## Source Code

          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