get_command_arguments_stack(3f) - [ARGUMENTS:M_args] return a character array containing all the command line arguments (LICENSE:PD)
Synopsis
Description
Examples
Author
License
function get_command_arguments(stack) result (args)
character(len=:),allocatable :: args(:)
Return a character array containing all the command arguments. For cases where it is difficult to process the command arguments one at a time, this function returns an array of the command line arguments
Sample program:
program demo_get_command_arguments_stack use M_args, only : get_command_arguments_stack implicit none character(len=:),allocatable :: myargs(:) integer :: i myargs=get_command_arguments_stack() write(*,(i0,t10,a))(i,myargs(i),i=1,size(myargs)) write(*,*)longest argument is ,len(myargs) write(*,*)number of arguments is ,size(myargs) end program demo_get_command_arguments_stack
John S. Urban, 2019
Public Domain
Nemo Release 3.1 | get_command_arguments_stack (3) | February 23, 2025 |