protected function simpleArg($key, $desc = '')
    {
        if ($this->isOption($key)) {
            $name = substr($key, 0, -1);
            $this->addArgument($name, InputArgument::OPTIONAL, $desc);
            $this->addArgumentInput($name, InputArgument::OPTIONAL, $desc);
        } else {
            $this->addArgument($key, InputArgument::REQUIRED, $desc);
            $this->addArgumentInput($key, InputArgument::REQUIRED, $desc);
        }
    }
protected function simpleArg($key, $desc = '')
    {
        if ($this->isOption($key)) {
            $name = substr($key, 0, -1);
            $this->addArgument($name, InputArgument::OPTIONAL, $desc);
            $this->addArgumentInput($name, InputArgument::OPTIONAL, $desc);
        } else {
            $this->addArgument($key, InputArgument::REQUIRED, $desc);
            $this->addArgumentInput($key, InputArgument::REQUIRED, $desc);
        }
    }
protected function simpleArg ( $ key , $ desc = '' ) { if ( $ this -> isOption ( $ key ) ) { $ name = substr ( $ key , 0 , - 1 ) ; $ this -> addArgument ( $ name , InputArgument :: OPTIONAL , $ desc ) ; $ this -> addArgumentInput ( $ name , InputArgument :: OPTIONAL , $ desc ) ; } else { $ this -> addArgument ( $ key , InputArgument :: REQUIRED , $ desc ) ; $ this -> addArgumentInput ( $ key , InputArgument :: REQUIRED , $ desc ) ; } }
set simple arg with optional description.
set simple arg with optional description .