BSpline Finite Element Exterior Calculus
Loading...
Searching...
No Matches
m_cmd_parser Module Reference

A simple command line argument parser for Fortran programs. More...

Functions/Subroutines

subroutine, public parse_cmd_args (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10)
 Parses command line arguments and assigns them to the provided variables.
 
subroutine, public parse_cmd_arg_pairs (name1, arg1, name2, arg2, name3, arg3, name4, arg4, name5, arg5, name6, arg6, name7, arg7, name8, arg8, name9, arg9, name10, arg10)
 Parses command line arguments in the form of name=value pairs and assigns them to the provided variables.
 

Detailed Description

A simple command line argument parser for Fortran programs.

Function/Subroutine Documentation

◆ parse_cmd_arg_pairs()

subroutine, public m_cmd_parser::parse_cmd_arg_pairs ( character(len=*), intent(in), optional name1,
class(*), intent(inout), optional arg1,
character(len=*), intent(in), optional name2,
class(*), intent(inout), optional arg2,
character(len=*), intent(in), optional name3,
class(*), intent(inout), optional arg3,
character(len=*), intent(in), optional name4,
class(*), intent(inout), optional arg4,
character(len=*), intent(in), optional name5,
class(*), intent(inout), optional arg5,
character(len=*), intent(in), optional name6,
class(*), intent(inout), optional arg6,
character(len=*), intent(in), optional name7,
class(*), intent(inout), optional arg7,
character(len=*), intent(in), optional name8,
class(*), intent(inout), optional arg8,
character(len=*), intent(in), optional name9,
class(*), intent(inout), optional arg9,
character(len=*), intent(in), optional name10,
class(*), intent(inout), optional arg10 )

Parses command line arguments in the form of name=value pairs and assigns them to the provided variables.

Parameters
[in]name1,name2,...,name10_(optional)_ names of the command line arguments to look for
[in,out]arg1,arg2,...,arg10_(optional)_ variables to assign the command line arguments to
Note
Command line arguments can be provided in the form of --name=value or -name value or name value. All arguments that are passed should have been given default values before calling this subroutine, otherwise they will be uninitialized if the corresponding command line argument is not provided

◆ parse_cmd_args()

subroutine, public m_cmd_parser::parse_cmd_args ( class(*), intent(inout), optional arg1,
class(*), intent(inout), optional arg2,
class(*), intent(inout), optional arg3,
class(*), intent(inout), optional arg4,
class(*), intent(inout), optional arg5,
class(*), intent(inout), optional arg6,
class(*), intent(inout), optional arg7,
class(*), intent(inout), optional arg8,
class(*), intent(inout), optional arg9,
class(*), intent(inout), optional arg10 )

Parses command line arguments and assigns them to the provided variables.

Parameters
[in,out]arg1,arg2,...,arg10_(optional)_ variables to assign the command line arguments to
Note
All arguments that are passed should have been given default values before calling this subroutine, otherwise they will be uninitialized if the corresponding command line argument is not provided