original_string: public function parseParameters()
      {
          $this->reset();
  
          // Extract the scriptName
          $this->scriptName = array_shift($this->parameters);
  
          foreach ($this->parameters as $parameter) {
              $optionString = ltrim($parameter, '-');
  
              if (substr($parameter, 0, 2) === "--") {
                  $this->parseOption($optionString);
              } elseif (substr($parameter, 0, 1) === "-") {
                  $this->parseFlagOption($optionString);
              } else {
                  $this->parseArgument($parameter);
              }
          }
          return $this;
      }
code: public function parseParameters()
      {
          $this->reset();
  
          // Extract the scriptName
          $this->scriptName = array_shift($this->parameters);
  
          foreach ($this->parameters as $parameter) {
              $optionString = ltrim($parameter, '-');
  
              if (substr($parameter, 0, 2) === "--") {
                  $this->parseOption($optionString);
              } elseif (substr($parameter, 0, 1) === "-") {
                  $this->parseFlagOption($optionString);
              } else {
                  $this->parseArgument($parameter);
              }
          }
          return $this;
      }
code_tokens: public function parseParameters ( ) { $ this -> reset ( ) ; // Extract the scriptName $ this -> scriptName = array_shift ( $ this -> parameters ) ; foreach ( $ this -> parameters as $ parameter ) { $ optionString = ltrim ( $ parameter , '-' ) ; if ( substr ( $ parameter , 0 , 2 ) === "--" ) { $ this -> parseOption ( $ optionString ) ; } elseif ( substr ( $ parameter , 0 , 1 ) === "-" ) { $ this -> parseFlagOption ( $ optionString ) ; } else { $ this -> parseArgument ( $ parameter ) ; } } return $ this ; }
docstring: Split the parameters into script name, command name, options and arguments.
  
  Flag options can be passed in a single set preceded by a dash:
  -a -b -c
  or concatenated together, which looks like this:
  -abc
  
  When an option is encountered with a value set, everything after = is seen as that value:
  -a -b -c=def
  or:
  -abc=def
  
  @return $this
docstring_tokens: Split the parameters into script name command name options and arguments .