Overview

Namespaces

  • None
  • Peg
    • Cli
      • Commands
    • Config
    • Custom
      • Command
        • Action
          • Generate
          • Parse
      • CommandLine
      • Config
      • Localization
      • Utilities
    • Lib
      • Definitions
        • Element
      • Generator
      • Lexers
      • Plugins
      • Signals
        • Data
          • Definitions
          • Lexers
        • Type
  • PHP

Classes

  • Action
  • Command
  • Error
  • Option
  • OptionType
  • Parser
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class OptionType

Enumeration used to declare a \Peg\Custom\CommandLine\Option type

Namespace: Peg\Custom\CommandLine
Located at src/CommandLine/OptionType.php
Constants summary
integer STRING 1
#

Accepts any type of string.

Accepts any type of string.

integer INTEGER 2
#

Only accept numbers.

Only accept numbers.

integer FLAG 3
#

Doesn't needs a value, just to be present.

Doesn't needs a value, just to be present.

PEG Api API documentation generated by ApiGen 2.8.0