예제 #1
0
 public function options($opts)
 {
     // Inherit the options from CLIFramework\Application
     parent::options($opts);
     $opts->add('dryrun', 'dryrun mode.');
     $opts->add('skip+', 'Skip specific step');
     $opts->add('no-autoload', 'Skip autoload');
     // Inherit the options from the sub-tasks
     foreach ($this->getTaskObjects() as $task) {
         $task->options($opts);
     }
 }
예제 #2
0
 public function options($opts)
 {
     parent::options($opts);
     $opts->add('t|test?', 'Test something.');
 }
예제 #3
0
 function options($opts)
 {
     parent::options($opts);
 }
예제 #4
0
파일: Console.php 프로젝트: m-jch/phpbrew
 public function options($opts)
 {
     parent::options($opts);
     $opts->add('no-progress', 'Do not display progress bar.');
 }
예제 #5
0
 public function options($getopt)
 {
     $getopt->add('c|color', 'Color message');
     parent::options($getopt);
 }