get_arg(3f) - [ARGUMENTS:M_args] get value of command line argument by number (LICENSE:PD)
Synopsis
Description
Options
Examples
Author
License
function get_arg(number,ierr)
integer,intent(in) :: number integer,optional,intent(out) :: ierr character(len=:),allocatable :: get_arg
retrieve the nth value from the command line arguments.
NUMBER retrieve the Nth value from the command line argument list. IERR an error occurred if not zero.
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
John S. Urban, 2019
Public Domain
Nemo Release 3.1 | get_arg (3) | February 23, 2025 |