FargparseCLI_Type Derived Type

type, public :: FargparseCLI_Type


Inherits

type~~fargparsecli_type~~InheritsGraph type~fargparsecli_type FargparseCLI_Type ArgParser ArgParser type~fargparsecli_type->ArgParser parser StringUnlimitedMap StringUnlimitedMap type~fargparsecli_type->StringUnlimitedMap options

Components

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

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(FargparseCLI_Type), intent(inout) :: fargparseCLI
    type(MAPL_CapOptions), intent(out) :: cap_options
    class(KeywordEnforcer), intent(in), optional :: unusable
    integer, intent(out), optional :: rc

Source Code

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