Skip to content

Commit

Permalink
Fix the command name and description.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Mar 9, 2020
1 parent 69152bb commit e62f4f9
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions src/Command/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,18 @@ public function getHelp(): string
protected function configure(): void
{
$this
->setName('generate-nikic')
->setDescription('Generate an Abstract Syntax Tree using nikic/php-parser parser.')
->setName('generate')
->setDescription('Generate an Abstract Syntax Tree.')
->setHelp($this->getHelp())
->addArgument('filepath', InputArgument::REQUIRED, 'Filepath to the PHP code.')
->addOption('parser', 'p', InputOption::VALUE_OPTIONAL, 'The parser (ast, nikic, microsoft)', 'nikic')
->addOption('type', 't', InputOption::VALUE_OPTIONAL, 'The exporter type (dot, image)', 'dot')
->addOption(
'parser',
'p',
InputOption::VALUE_OPTIONAL,
'The parser to use: ast, nikic or microsoft.',
'nikic'
)
->addOption('type', 't', InputOption::VALUE_OPTIONAL, 'The exporter type: dot or image', 'dot')
->addOption('format', 'f', InputOption::VALUE_OPTIONAL, 'The export format (png, jpg, svg)', 'svg')
->addOption(
'destination',
Expand All @@ -92,7 +98,13 @@ protected function configure(): void
'The export destination (a filepath or inline)',
'inline'
)
->addOption('fancy', 'c', InputOption::VALUE_OPTIONAL, 'Use the fancy exporter ?', false);
->addOption(
'fancy',
'c',
InputOption::VALUE_OPTIONAL,
'Use the fancy exporter ?',
false
);
}

/**
Expand Down

0 comments on commit e62f4f9

Please sign in to comment.