| @@ 660-666 (lines=7) @@ | ||
| 657 | } |
|
| 658 | ||
| 659 | foreach ($argv as $key => $val) { |
|
| 660 | if (0 === strpos($val, '--install-dir')) { |
|
| 661 | if (13 === strlen($val) && isset($argv[$key + 1])) { |
|
| 662 | $this->installDir = trim($argv[$key + 1]); |
|
| 663 | } else { |
|
| 664 | $this->installDir = trim(substr($val, 14)); |
|
| 665 | } |
|
| 666 | } |
|
| 667 | ||
| 668 | if (0 === strpos($val, '--version')) { |
|
| 669 | if (9 === strlen($val) && isset($argv[$key + 1])) { |
|
| @@ 668-674 (lines=7) @@ | ||
| 665 | } |
|
| 666 | } |
|
| 667 | ||
| 668 | if (0 === strpos($val, '--version')) { |
|
| 669 | if (9 === strlen($val) && isset($argv[$key + 1])) { |
|
| 670 | $this->version = trim($argv[$key + 1]); |
|
| 671 | } else { |
|
| 672 | $this->version = trim(substr($val, 10)); |
|
| 673 | } |
|
| 674 | } |
|
| 675 | ||
| 676 | if (0 === strpos($val, '--filename')) { |
|
| 677 | if (10 === strlen($val) && isset($argv[$key + 1])) { |
|
| @@ 676-682 (lines=7) @@ | ||
| 673 | } |
|
| 674 | } |
|
| 675 | ||
| 676 | if (0 === strpos($val, '--filename')) { |
|
| 677 | if (10 === strlen($val) && isset($argv[$key + 1])) { |
|
| 678 | $this->filename = trim($argv[$key + 1]); |
|
| 679 | } else { |
|
| 680 | $this->filename = trim(substr($val, 11)); |
|
| 681 | } |
|
| 682 | } |
|
| 683 | } |
|
| 684 | } |
|
| 685 | ||