Sign in Join
FPDoc Onlineexperiment

TOption record

In unit getopts

Long option description record.

Declaration

pascal
TOption = record

Description

The TOption type is used to communicate the long options to GetLongOpts. The Name field is the name of the option. Has_arg specifies if the option wants an argument, Flag is a pointer to a char, which is set to Value, if it is non- nil.

Methods

SetOptionpublicSet all option fields in 1 call.

Fields

NamepublicLong option name.
Has_argpublicDoes the option have arguments (values).
FlagpublicWhere to write Value if the option is found.
ValuepublicValue to return when option is encountered.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.