addUserArgumentsAndOptions() public method

Add user definition arguments and options to definition.
Example #1
0
 /**
  * Transform tasks to console commands.
  */
 public function addConsoleCommands()
 {
     $this->console->addUserArgumentsAndOptions();
     foreach ($this->tasks as $name => $task) {
         if ($task->isPrivate()) {
             continue;
         }
         $this->console->add(new TaskCommand($name, $task->getDescription(), $this));
     }
 }