sourcery_command_line_m Module

return command line argument information


Used by

  • module~~sourcery_command_line_m~~UsedByGraph module~sourcery_command_line_m sourcery_command_line_m module~sourcery_command_line_s sourcery_command_line_s module~sourcery_command_line_s->module~sourcery_command_line_m module~sourcery_m sourcery_m module~sourcery_m->module~sourcery_command_line_m module~sourcery_test_s sourcery_test_s module~sourcery_test_s->module~sourcery_command_line_m module~sourcery_string_s sourcery_string_s module~sourcery_string_s->module~sourcery_m

Interfaces

interface

  • private module function argument_present(acceptable_argument) result(found)

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

    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

interface

  • private module function flag_value(flag)

    result is the value passed adjacent to a command-line flag

    Arguments

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

    Return Value character(len=:), allocatable


Derived Types

type, public ::  command_line_t

Type-Bound Procedures

procedure, public, nopass :: argument_present
procedure, public, nopass :: flag_value