Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Console] Optionally stop options parsing at "--", fixes #21869#21870

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
ktomk wants to merge1 commit intosymfony:2.7fromktomk:ticket_21869

Conversation

ktomk
Copy link
Contributor

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#21869
LicenseMIT

Looking for options in the (raw) arguments should not look after an
argument of "--" has been encountered.

Not doing so prevents invoking the command or passing these arguments to
the command w/o interfering with the wrong application or command.

With this change: Places where the application looks for global flags like --verbose or
--help make use of the new OPTION_FLAG_POSIX that stops parsing options
at the options-from-operands delimiter "--" as in 12.2 Utility Syntax
Guidelines Guideline 10.

Refs:

Looking for options in the (raw) arguments should not look after anargument of "--" has been encountered.Not doing so prevents invoking the command or passing these arguments tothe command w/o interfering with the wrong application or command.Places where the application looks for global flags like --verbose or--help make use of the new OPTION_FLAG_POSIX that stops parsing optionsat the options-from-operands delimiter "--" as in 12.2 Utility SyntaxGuidelines Guideline 10.Refs:-http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html#tag_12_02
@fabpot
Copy link
Member

-- is supported as of Symfony 3.0, see#11431

@ktomk
Copy link
ContributorAuthor

Hmm, I see-- in the help output of that command in composer (based on 2.8.x IIRC) already, here this is within the composer project:

selection_018

selection_019

So if the fix is only in 3.0, then this has been filed against the wrong branch according to the docs I read yesterday, it's written, that it needs to go against the lowest supported one.

Can't the fix be ported onto 2.7+?

@ktomk
Copy link
ContributorAuthor

ktomk commentedMar 5, 2017
edited
Loading

Looks like the fix is done in a similar fashion. A pity I have not seen it earlier, it's some time ago.

@fabpot
Copy link
Member

This can be seen as a bug fix, but this is also a behavior change, so back then, we decided to merge it in master. We won't change the decision, so it cannot be backported.

@ktomk
Copy link
ContributorAuthor

Hmm, the behaviour of the routine does not change. What actually changes, is the flaw removed. I don't think there is much to decide, but it's your decision, I don't want anyone to loose her or his face, I mean that was back in 2014 considering now that as a bug is indeed a bit late.

@fabpot
Copy link
Member

Closing then. Thanks.

@fabpotfabpot closed thisMar 5, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@ktomk@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp