argument_present Interface

interface


Called by

interface~~argument_present~~CalledByGraph interface~argument_present command_line_t%argument_present proc~help_requested help_requested proc~help_requested->interface~argument_present proc~print_usage_info_and_stop_if_requested print_usage_info_and_stop_if_requested proc~print_usage_info_and_stop_if_requested->interface~argument_present program~check_for_command_line_argument check_for_command_line_argument program~check_for_command_line_argument->interface~argument_present proc~report_results report_results proc~report_results->proc~print_usage_info_and_stop_if_requested program~scaffold scaffold program~scaffold->proc~help_requested

private module function argument_present(acceptable_argument) result(found)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: acceptable_argument(:)

sample list: [character(len=len()):: "--benchmark", "-b", "/benchmark", "/b"] where dashes support Linux/macOS, slashes support Windows, and must be replaced by the longest list element ("--benchmark" above)

Return Value logical

Description

result is .true. only if a command-line argument matches an element of this function's argument