Manual Reference Pages  - get_args_fixed_length (3m_cli2)

NAME

get_args_fixed_length(3f) - [ARGUMENTS:M_CLI2] return keyword values for fixed-length string when parsing command line (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Example
Author
License

SYNOPSIS

subroutine get_args_fixed_length(name,value)

    character(len=*),intent(in)  :: name
    character(len=:),allocatable :: value
    character(len=*),intent(in),optional :: delimiters

DESCRIPTION

get_args_fixed_length(3f) returns the value of a string keyword when the string value is a fixed-length CHARACTER variable.

OPTIONS

NAME name of commandline argument to obtain the value of
VALUE variable to hold returned value. Must be a fixed-length CHARACTER variable.
DELIMITERS
  By default the delimiter for array values are comma, colon, and whitespace. A string containing an alternate list of delimiter characters may be supplied.

EXAMPLE

Sample program:

    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

AUTHOR

John S. Urban, 2019

LICENSE

Public Domain


Nemo Release 3.1 get_args_fixed_length (3m_cli2) August 01, 2024
Generated by manServer 1.08 from 71a65378-d9cf-47ff-a2ad-f88cd75317b0 using man macros.