MAPL_FargparseCLI Derived Type

type, public :: MAPL_FargparseCLI


Inherits

type~~mapl_fargparsecli~~InheritsGraph type~mapl_fargparsecli MAPL_FargparseCLI ArgParser ArgParser type~mapl_fargparsecli->ArgParser parser StringUnlimitedMap StringUnlimitedMap type~mapl_fargparsecli->StringUnlimitedMap options

Components

Type Visibility Attributes Name Initial
type(ArgParser), public :: parser
type(StringUnlimitedMap), public :: options

Constructor

public interface MAPL_FargparseCLI

  • private function new_CapOptions_from_fargparse(unusable, dummy, extra, rc) result(cap_options)

    Arguments

    Type IntentOptional Attributes Name
    class(KeywordEnforcer), intent(in), optional :: unusable
    character(len=*), intent(in) :: dummy
    procedure(I_extraoptions), optional :: extra
    integer, intent(out), optional :: rc

    Return Value type(MAPL_CapOptions)

  • private function new_CapOptions_from_fargparse_back_comp(unusable, extra, rc) result(fargparsecap)

    Arguments

    Type IntentOptional Attributes Name
    class(KeywordEnforcer), intent(in), optional :: unusable
    procedure(I_extraoptions), optional :: extra
    integer, intent(out), optional :: rc

    Return Value type(MAPL_FargparseCLI)


Type-Bound Procedures

procedure, public, nopass :: add_command_line_options

  • private subroutine add_command_line_options(parser, unusable, rc)

    Arguments

    Type IntentOptional Attributes Name
    type(ArgParser), intent(inout) :: parser
    class(KeywordEnforcer), intent(in), optional :: unusable
    integer, intent(out), optional :: rc

procedure, public :: fill_cap_options

  • private subroutine fill_cap_options(fargparseCLI, cap_options, unusable, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(MAPL_FargparseCLI), intent(inout) :: fargparseCLI
    type(MAPL_CapOptions), intent(out) :: cap_options
    class(KeywordEnforcer), intent(in), optional :: unusable
    integer, intent(out), optional :: rc

Source Code

   type :: MAPL_FargparseCLI
     type(ArgParser) :: parser
     type(StringUnlimitedMap) :: options
   contains
      procedure, nopass :: add_command_line_options
      procedure :: fill_cap_options
   end type MAPL_FargparseCLI