julienne_command_line_m Module

return command line argument information


Used by

  • module~~julienne_command_line_m~~UsedByGraph module~julienne_command_line_m julienne_command_line_m module~julienne_command_line_s julienne_command_line_s module~julienne_command_line_s->module~julienne_command_line_m module~julienne_m julienne_m module~julienne_m->module~julienne_command_line_m module~julienne_test_s julienne_test_s module~julienne_test_s->module~julienne_command_line_m program~check_command_line_argument check_command_line_argument program~check_command_line_argument->module~julienne_m program~get_flag_value get_flag_value program~get_flag_value->module~julienne_m program~handle_missing_flag handle_missing_flag program~handle_missing_flag->module~julienne_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