C Library Functions  - get_arg (3)

NAME

get_arg(3f) - [ARGUMENTS:M_args] get value of command line argument by number (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Examples
Author
License

SYNOPSIS

function get_arg(number,ierr)

   integer,intent(in) :: number
   integer,optional,intent(out) :: ierr
   character(len=:),allocatable :: get_arg

DESCRIPTION

retrieve the nth value from the command line arguments.

OPTIONS

NUMBER retrieve the Nth value from the command line argument list.
IERR an error occurred if not zero.

EXAMPLES

Typical usage:

    program demo_get_arg
    use M_args, only : get_arg
    implicit none
    integer                      :: i
       do i=1,command_argument_count()
          write(*,*)i,get_arg(i)
       enddo
    end program demo_get_arg

AUTHOR

John S. Urban, 2019

LICENSE

Public Domain


Nemo Release 3.1 get_arg (3) February 23, 2025
Generated by manServer 1.08 from be62d920-7e4b-4a63-91c2-bcc5761e5c05 using man macros.