extra_options Subroutine

subroutine extra_options(parser, rc)

Arguments

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

Calls

proc~~extra_options~~CallsGraph proc~extra_options extra_options add_argument add_argument proc~extra_options->add_argument

Source Code

      subroutine extra_options(parser, rc)
         type (ArgParser), intent(inout) :: parser
         integer, intent(out), optional :: rc

         call parser%add_argument('-f', '--file', &
              help='A file to read', &
              type='string', &
              default='default.config', &
              action='store')

         !_RETURN(_SUCCESS)
         if (present(rc)) rc = 0

      end subroutine extra_options