functionis_optionpure
pure logical function is_option(key)
True if key is the name of an option.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| key | character(len=*) | in | the name |
Result
| Name | Type | Attributes | Description |
|---|---|---|---|
| is_option | logical |
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