Unit PasDoc_OptionParser

Description

The PasDoc_OptionParser unit — easing command line parsing

To use this unit, create an object of TOptionParser and add options to it, each option descends from TOption. Then, call your object's TOptionParser.ParseOptions method and options are parsed. After parsing, examine your option objects.

Uses

  • Classes

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TOption abstract base class for options
Class TBoolOption simple boolean option
Class TValueOption base class for all options that values
Class TIntegerOption Integer option
Class TStringOption String option
Class TStringOptionList stringlist option
Class TPathListOption pathlist option
Class TSetOption useful for making a choice of things
Class TOptionParser OptionParser — instantiate one of these for commandline parsing

Constants

DefShortOptionChar = '-';
DefLongOptionString = '--';

Description

Constants

DefShortOptionChar = '-';

default short option character used

DefLongOptionString = '--';

default long option string used

Author


Generated by PasDoc 0.15.0.