Skip to content

Revert 2bd797f commit & deprecated exception fix#63

Merged
c9s merged 1 commit into
c9s:masterfrom
peter279k:fall_back_extra_argument
Apr 13, 2023
Merged

Revert 2bd797f commit & deprecated exception fix#63
c9s merged 1 commit into
c9s:masterfrom
peter279k:fall_back_extra_argument

Conversation

@peter279k

@peter279k peter279k commented Apr 13, 2023

Copy link
Copy Markdown
Collaborator

Changed log

  • Reverting the 2bd797f commit because the commit is not fixed for extra argument parsing. And it needs to fall back.
  • Since the @expectedException comment annotation is deprecated in the latest PHPUnit version, using the expectException method instead.

@peter279k peter279k requested a review from c9s April 13, 2023 02:59
@peter279k peter279k self-assigned this Apr 13, 2023
@c9s c9s merged commit 9a433c6 into c9s:master Apr 13, 2023
@peter279k peter279k deleted the fall_back_extra_argument branch April 13, 2023 03:28
Comment thread src/OptionParser.php
foreach ($argv as $arg) {
if ($arg === '--') {
$afterDash = true;
continue;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The continue loop should be removed. And the -- will be added in the $newArgv array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants