libsim  Versione7.1.6
subroutine optionparser_add_c ( type(optionparser), intent(inout)  this,
character(len=*), intent(in)  short_opt,
character(len=*), intent(in)  long_opt,
character(len=*), target  dest,
character(len=*), optional  default,
character(len=*), optional  help,
logical, intent(in), optional  isopt 
)

Add a new option with a character type argument.

When parsing will be performed, if the requested option is encountered, its corresponding compulsory argument will be copied into the provided destination, truncating it if it is too long. 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]thisoptionparser object
[in]short_optthe short option (may be empty)
[in]long_optthe long option (may be empty)
destthe destination of the option parse result
defaultthe default value to give to dest if option is not found
helpthe help message that will be formatted and pretty-printed on screen
[in]isoptif provided and .TRUE. the argument is considered optional

Definizione alla linea 1089 del file optionparser_class.F90.


Generated with Doxygen.