|
◆ optionparser_add_i()
subroutine optionparser_add_i |
( |
type(optionparser), intent(inout) |
this, |
|
|
character(len=*), intent(in) |
short_opt, |
|
|
character(len=*), intent(in) |
long_opt, |
|
|
integer, target |
dest, |
|
|
integer, optional |
default, |
|
|
character(len=*), optional |
help |
|
) |
| |
Add a new option with an integer type argument.
When parsing will be performed, if the requested option is encountered, its corresponding compulsory argument will be copied into the provided destination. An optional default value can be provided for the destination. Please use the generic optionparser_add method rather than this particular method.
- Parametri
-
[in,out] | this | optionparser object |
[in] | short_opt | the short option (may be empty) |
[in] | long_opt | the long option (may be empty) |
| dest | the destination of the option parse result |
| default | the default value to give to dest if option is not found |
| help | the help message that will be formatted and pretty-printed on screen |
Definizione alla linea 1168 del file optionparser_class.F90.
1173 SUBROUTINE optionparser_printhelp(this) 1174 TYPE(optionparser), INTENT(in) :: this 1179 DO i = 1, this%options%arraysize 1180 IF (this%options%array(i)%opttype == opttype_help) THEN 1181 form = this%options%array(i)%helpformat 1187 CALL optionparser_printhelptxt(this) 1189 CALL optionparser_printhelpmd(this) 1191 CALL optionparser_printhelphtmlform(this) 1194 END SUBROUTINE optionparser_printhelp
|