libsim  Versione 7.1.6

◆ optionparser_parse()

subroutine, public optionparser_class::optionparser_parse ( type(optionparser), intent(inout)  this,
integer, intent(out)  nextarg,
integer, intent(out)  status 
)

This method performs the parsing of the command-line options which have been previously added using the optionparser_add family of methods.

The destination variables set through the optionparser_add methods are assigned according to the options encountered on the command line. If any optional argument remains after interpretation of all command-line options, the index of the first of them is returned in nextarg, otherwise nextarg is equal to iargc() + 1. The status of the parsing process should be checked via the status argument.

Parametri
[in,out]thisoptionparser object with correctly initialised options
[out]nextargindex of the first optional argument after interpretation of all command-line options
[out]statusstatus of the parsing process, to be compared with the constants optionparser_ok, ecc.

Definizione alla linea 1532 del file optionparser_class.F90.


Generated with Doxygen.