Added a better way to use a bundle argument in commands
Added bundle argument to propel:model:build command
This commit is contained in:
parent
cb9d7908d8
commit
a30747ed09
6 changed files with 39 additions and 38 deletions
|
|
@ -12,6 +12,7 @@ namespace Propel\PropelBundle\Command;
|
|||
|
||||
use Propel\PropelBundle\Command\AbstractPropelCommand;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Input\InputArgument;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
/**
|
||||
|
|
@ -29,6 +30,7 @@ class ModelBuildCommand extends AbstractPropelCommand
|
|||
{
|
||||
$this
|
||||
->setDescription('Build the Propel Object Model classes based on XML schemas')
|
||||
->addArgument('bundle', InputArgument::OPTIONAL, 'The bundle to generate model classes from')
|
||||
->setHelp(<<<EOT
|
||||
The <info>%command.name%</info> command builds the Propel runtime model classes (ActiveRecord, Query, Peer, and TableMap classes) based on the XML schemas defined in all Bundles.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue