cli_obj Derived Type

type, public :: cli_obj

Procedures to parse the command line switches


Type-Bound Procedures

procedure, public, nopass :: get => cli_obj_get

  • private subroutine cli_obj_get(switch, val, found, default)

    Get command line options

    Arguments

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

    Cli switch

    class(*), intent(out) :: val

    Value of the switch

    logical, intent(out), optional :: found

    true if switch found

    class(*), intent(in), optional :: default

    Default value