fdoc

functionis_optionpure

pure logical function is_option(key)

True if key is the name of an option.

Arguments

NameTypeIntentAttributesDescription
keycharacter(len=*)in

the name

Result

NameTypeAttributesDescription
is_optionlogical

Calls

Source

Show the code
pure logical function is_option(key)
    character(len=*), intent(in) :: key     !! the name
    is_option = len(key) > 0 .and. index(key, ' ') == 0 .and. (in_set(STRING_OPTIONS, key) .or. in_set(PATH_OPTIONS, key) &
                                                               .or. in_set(LOGICAL_OPTIONS, key) .or. &
                                                               in_set(INTEGER_OPTIONS, key) .or. in_set(LIST_OPTIONS, key) &
                                                               .or. in_set(MAP_OPTIONS, key))
end function is_option

Graphs

Calls

Called by