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

  • Command
  • ConfigTools
  • Generate
  • Init
  • Scanner
  • Test
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo
 1: <?php
 2: 
 3: namespace Peg\Cli\Commands;
 4: 
 5: use Symfony\Component\Console\Command\Command as SymfonyCommand;
 6: use Symfony\Component\Console\Input\InputArgument;
 7: use Symfony\Component\Console\Input\InputInterface;
 8: use Symfony\Component\Console\Input\InputOption;
 9: use Symfony\Component\Console\Output\OutputInterface;
10: 
11: class Command extends SymfonyCommand {
12: 
13:     protected function configure() {
14:         
15:         $this->addArgument(
16:             'config-path',
17:             InputArgument::REQUIRED,
18:             'Path to the PEG config you are using'
19:         );
20:     }
21: }
22: 
PEG Api API documentation generated by ApiGen 2.8.0