help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Procedures and functions][Variables] Reference for unit 'getopts' (#rtl)

TOption

Long option description record

Declaration

Source position: getopts.pp line 27

type TOption = record

  Name: String;

  

Long option name

  Has_arg: Integer;

  

Does the option have arguments (values)

  Flag: PChar;

  

Flag

  Value: Char;

  

Value to return when option is encountered

end;

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.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505