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

Reference for unit 'CmdLine': Procedures and functions

ArgumentCount

  

Returns the number of arguments.

ArgumentStr

  

Returns argument at index Index.

DefineBooleanOption

  

Defines a new boolean option.

DefineCountedOption

  

Defines a new counted option.

DefineDoubleOption

  

Defines a new double option.

DefineEnumOption

  

Defines a new enum option.

DefineLongIntOption

  

Defines a new longint option.

DefinePathOption

  

Defines a new path option.

DefineRangeOption

  

Defines a new range option.

DefineSimpleOption

  

Defines a new simple option.

DefineStringOption

  

Defines a new string option.

DisplayHelp

  

Display the help for the tool.

FinalizeCommandLineScan

  

Destroy all previously defined options and finalize the command line scanning process.

GetOptionCount

  

Tells how many times an option is present.

InitializeCommandLineScan

  

Resets all variables associated with simple options and counted options then prepare for command line scan.

ScanArgs

  

Scans arguments comming from Args instead of arguments on the command line.

ScanCommandLine

  

Scan the command line.

ScanFile

  

Scan FileName as if each line is a command parameter.

SetCallback

  

Set a callback function that will be called for every option and every argument.

SetExpansionMode

  

Defines how wildcards are expanded.

SetHelpContent

  

Set content part of help.

SetHelpFooter

  

Set footer part of help.

SetHelpHeader

  

Set header part of help.

SetHelpOption

  

Sets the option the user can use to get help.

SetHelpUsage

  

Set usage part of help.

SetOptionHelp

  

Set Help string and ArgName for option Option.

SetStopAtFirstNonOption

  

Stops command line parsing at first non option.

WriteErrorMessage

  

Writes a standard error message on StdErr in the format "<ApplicationName> : <Msg>".

WriteTryCmdMessage

  

Writes a line on StdErr looking like : "Try `<ApplicationName> --<HelpOption>' for more information."