parse_option Interface

public interface parse_option

Module Procedures

private subroutine parse_option_string(arg, option_name, string)

get one option value or string from ARG The first chracter of ARG%option(i) should be + or -. That's why it is taken by ARG%option(i)(2:).


Arguments

Type IntentOptional Attributes Name
type(argument), intent(in) :: arg
character(len=*), intent(in) :: option_name
character(len=*), intent(out) :: string

private subroutine parse_option_real(arg, option_name, value, value2)

Arguments

Type IntentOptional Attributes Name
type(argument), intent(in) :: arg
character(len=*), intent(in) :: option_name
real(kind=long), intent(out) :: value
real(kind=long), intent(out), optional :: value2

private subroutine parse_option_integer(arg, option_name, value, value2)

Arguments

Type IntentOptional Attributes Name
type(argument), intent(in) :: arg
character(len=*), intent(in) :: option_name
integer, intent(out) :: value
integer, intent(out), optional :: value2

private subroutine parse_option_logical(arg, option_name, yes)

Arguments

Type IntentOptional Attributes Name
type(argument), intent(in) :: arg
character(len=*), intent(in) :: option_name
logical, intent(inout) :: yes