|
◆ 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_msg | short help message which describes the program usage, if not provided, a standard message will be printed |
[in] | description_msg | long help message which describes the program purpose, if not provided, nothing will be printed |
Definizione alla linea 1065 del file optionparser_class.F90.
1068 status = optionparser_err
1069 CALL l4f_log(l4f_error, &
1070 'in optionparser, option '''//trim(arg)// ''' requires an argument'
1074 IF (indeq /= 0) THEN
1075 optarg = arg(indeq+1:)
1077 IF (i < iargc()) THEN
1078 CALL getarg(i+1, optarg)
1079 IF (optarg(1:1) == '-') THEN
|