original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: set simple arg with optional description.
docstring_tokens: set simple arg with optional description .