コード例 #1
0
ファイル: StatusTask.php プロジェクト: JesseDarellMoore/CS499
 /**
  * {@inheritDoc}
  */
 public function getOptionParser()
 {
     $parser = parent::getOptionParser();
     $parser->addOption('format', ['short' => 'f', 'help' => 'The output format: text or json. Defaults to text.', 'required' => false]);
     return $parser;
 }
コード例 #2
0
 /**
  * {@inheritDoc}
  */
 public function getOptionParser()
 {
     $parser = parent::getOptionParser();
     $parser->addOption('target', ['short' => 't', 'help' => 'The version number to migrate to', 'required' => false])->addOption('date', ['short' => 'd', 'help' => 'The date to migrate to', 'required' => false]);
     return $parser;
 }
コード例 #3
0
 /**
  * {@inheritDoc}
  */
 public function getOptionParser()
 {
     $parser = parent::getOptionParser();
     $parser->addArgument('version', ['help' => 'What is the version of the migration?'])->addOption('exclude', ['short' => 'x', 'help' => 'If present it will mark migrations from beginning until the given version, excluding it', 'required' => false])->addOption('only', ['short' => 'o', 'help' => 'If present it will only mark the given migration version', 'required' => false]);
     return $parser;
 }