libsim  Versione6.3.0

◆ optionparser_new()

type(optionparser) function, public optionparser_class::optionparser_new ( character(len=*), intent(in), optional  usage_msg,
character(len=*), intent(in), optional  description_msg 
)

Create a new instance of an optionparser object.

General usage and description messages can be optionally provided, the options will be added later.

Parametri
[in]usage_msgshort help message which describes the program usage, if not provided, a standard message will be printed
[in]description_msglong help message which describes the program purpose, if not provided, nothing will be printed

Definizione alla linea 1081 del file optionparser_class.F90.

1081  CALL getarg(i+1, optarg)
1082  IF (optarg(1:1) == '-') THEN
1083  optarg = cmiss ! refused
1084  ELSE
1085  i=i+1 ! accepted
1086  ENDIF
1087  ELSE
1088  optarg = cmiss ! refused
1089  ENDIF
1090  ENDIF
1091  status = max(option_found(this%options%array(j), optarg), &
1092  status)
1093  CASE(0)
1094  status = max(option_found(this%options%array(j)), &
1095  status)
1096  END SELECT

Generated with Doxygen.