Lines Matching refs:arg
448 $arg = $this->_cliArgs[$i];
449 if ($arg === '') {
453 if ($arg{0} === '-') {
454 if ($arg === '-' || $arg === '--') {
459 if ($arg{1} === '-') {
460 $this->processLongArgument(substr($arg, 2), $i);
462 $switches = str_split($arg);
472 $this->processUnknownArgument($arg, $i);
482 * @param string $arg The command line argument.
487 public function processShortArgument($arg, $pos) argument
489 switch ($arg) {
552 $this->values[$arg] = $arg;
554 $this->processUnknownArgument('-'.$arg, $pos);
564 * @param string $arg The command line argument.
569 public function processLongArgument($arg, $pos) argument
571 switch ($arg) {
874 if ($arg{0} === '-') {
879 echo 'ERROR: option "'.$arg.'" not known.'.PHP_EOL.PHP_EOL;
884 $file = PHP_CodeSniffer::realpath($arg);
890 echo 'ERROR: The file "'.$arg.'" does not exist.'.PHP_EOL.PHP_EOL;