libSUFR
a LIBrary of Some Useful Fortran Routines
All Classes Namespaces Files Functions Variables Pages
sufr_getopt::getopt_t Type Reference

Struct to define short and long options for getopt_long() More...

Public Attributes

character short = ''
 The short option (single character, without the leading dash)
 
character, dimension(longoptlen) long = ''
 The long option (without the leading dashes, max 99 characters long)
 
integer reqarg = 0
 Argument required? 0-no, 1-yes.
 
character, dimension(999) descr = ''
 A (short) description (recommended: <1 screen width; max 999 characters)
 

Detailed Description

Struct to define short and long options for getopt_long()

Definition at line 68 of file getopt.f90.

Member Data Documentation

◆ descr

character, dimension(999) sufr_getopt::getopt_t::descr = ''

A (short) description (recommended: <1 screen width; max 999 characters)

Definition at line 72 of file getopt.f90.

◆ long

character, dimension(longoptlen) sufr_getopt::getopt_t::long = ''

The long option (without the leading dashes, max 99 characters long)

Definition at line 70 of file getopt.f90.

◆ reqarg

integer sufr_getopt::getopt_t::reqarg = 0

Argument required? 0-no, 1-yes.

Definition at line 71 of file getopt.f90.

◆ short

character sufr_getopt::getopt_t::short = ''

The short option (single character, without the leading dash)

Definition at line 69 of file getopt.f90.


The documentation for this type was generated from the following file: