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] do not make the getHelp() method smart#15976

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

Merged
fabpot merged 1 commit intosymfony:2.3fromxabbuh:pr-15601-tweak
Sep 28, 2015

Conversation

@xabbuh
Copy link
Member

QA
Bug fix?kind of
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

In my opinion, the way to always display a help message to the user was implemented in#15601 is not good enough. The getter method for the help should only return the actual value. Otherwise, user's would not have a way to check if a command really has a help message (for example, when building their own CLI applications or whatever). Instead, we should only return the description as a fallback of the help message when it is processed to present it to the user.

Copy link
Member

Choose a reason for hiding this comment

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

use?: here

@stof
Copy link
Member

you should add a test covering the fallback for getProcessedHelp though

@xabbuh
Copy link
MemberAuthor

added a test

@fabpot
Copy link
Member

Thank you@xabbuh.

@fabpotfabpot merged commitcdf1f00 intosymfony:2.3Sep 28, 2015
fabpot added a commit that referenced this pull requestSep 28, 2015
This PR was merged into the 2.3 branch.Discussion----------[Console] do not make the getHelp() method smart| Q             | A| ------------- | ---| Bug fix?      | kind of| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |In my opinion, the way to always display a help message to the user was implemented in#15601 is not good enough. The getter method for the help should only return the actual value. Otherwise, user's would not have a way to check if a command really has a help message (for example, when building their own CLI applications or whatever). Instead, we should only return the description as a fallback of the help message when it is processed to present it to the user.Commits-------cdf1f00 [Console] do not make the getHelp() method smart
@xabbuhxabbuh deleted the pr-15601-tweak branchSeptember 28, 2015 20:30
This was referencedOct 27, 2015
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.

4 participants

@xabbuh@stof@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp