|
@@ 135-136 (lines=2) @@
|
| 132 |
|
} |
| 133 |
|
|
| 134 |
|
switch (true) { |
| 135 |
|
case Str::endsWith($token, '='): |
| 136 |
|
return new InputOption(trim($token, '='), $shortcut, InputOption::VALUE_OPTIONAL, $description); |
| 137 |
|
|
| 138 |
|
case Str::endsWith($token, '=*'): |
| 139 |
|
return new InputOption(trim($token, '=*'), $shortcut, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, $description); |
|
@@ 138-139 (lines=2) @@
|
| 135 |
|
case Str::endsWith($token, '='): |
| 136 |
|
return new InputOption(trim($token, '='), $shortcut, InputOption::VALUE_OPTIONAL, $description); |
| 137 |
|
|
| 138 |
|
case Str::endsWith($token, '=*'): |
| 139 |
|
return new InputOption(trim($token, '=*'), $shortcut, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, $description); |
| 140 |
|
|
| 141 |
|
case preg_match('/(.+)\=(.+)/', $token, $matches): |
| 142 |
|
return new InputOption($matches[1], $shortcut, InputOption::VALUE_OPTIONAL, $description, $matches[2]); |