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_m julienne_test_m module~julienne_m->module~julienne_test_m module~julienne_test_m->module~julienne_command_line_m module~julienne_test_s julienne_test_s module~julienne_test_s->module~julienne_test_m program~assertions assertions program~assertions->module~julienne_m program~check_for_command_line_argument check_for_command_line_argument program~check_for_command_line_argument->module~julienne_m program~get_command_line_flag_value get_command_line_flag_value program~get_command_line_flag_value->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 = { the value passed immediately after a command-line flag if the flag is present or { an empty string otherwise.

    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