Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Dec 6, 2018
2 parents 55c5a1d + 0ae7cbd commit ef74366
Show file tree
Hide file tree
Showing 2 changed files with 395 additions and 3 deletions.
9 changes: 8 additions & 1 deletion src/Argument/ShortOptionArgument.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@

class ShortOptionArgument extends Argument {
protected function processRawKey(string $rawKey):string {
return substr($rawKey, 1);
$key = substr($rawKey, 1);
$equalsPos = strpos($key, "=");

if($equalsPos !== false) {
$key = substr($key, 0, $equalsPos);
}

return $key;
}
}
Loading

0 comments on commit ef74366

Please sign in to comment.