src/Console/Command.php
public function setOption($name, $shortcut = null, $inputRequired = false, $description = 'option does what?')
    {
        $inputRequired ? $inputRequired = InputOption::VALUE_REQUIRED :
            $inputRequired = InputOption::VALUE_OPTIONAL;

        $this->addOption($name, $shortcut, $inputRequired, $description);
    }
public function setOption($name, $shortcut = null, $inputRequired = false, $description = 'option does what?')
    {
        $inputRequired ? $inputRequired = InputOption::VALUE_REQUIRED :
            $inputRequired = InputOption::VALUE_OPTIONAL;

        $this->addOption($name, $shortcut, $inputRequired, $description);
    }
public function setOption ( $ name , $ shortcut = null , $ inputRequired = false , $ description = 'option does what?' ) { $ inputRequired ? $ inputRequired = InputOption :: VALUE_REQUIRED : $ inputRequired = InputOption :: VALUE_OPTIONAL ; $ this -> addOption ( $ name , $ shortcut , $ inputRequired , $ description ) ; }
Add options to command.

@param $name, the option name
@param null $shortcut
@param bool $inputRequired, whether it is required
@param $description, description
Add options to command .