[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'CmdLine' (#Pkg)

DefineSimpleOption

Defines a new simple option.

Declaration

Source position: cmdline.pas line 368

procedure DefineSimpleOption(

  ShortOpt: Char;

  const LongOpt: string;

  VarPtr: PBoolean;

  const Help: UTF8String;

  Flags: TOptionFlags = []

);

Arguments

ShortOpt

  

Short option (If there is no short option then set it to #0)

LongOpt

  

Long option

VarPtr

  

If VarPtr is not nil then the variable pointed by VarPtr is set to true if the option is present on the command line or to false otherwise.

Help

  

The help string associated with the option.

See also

DisplayHelp

  

Display the help for the tool.