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] Display console application name even when no version set#17326

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
polc wants to merge3 commits intosymfony:2.3frompolc:console_application_name
Closed

[Console] Display console application name even when no version set#17326

polc wants to merge3 commits intosymfony:2.3frompolc:console_application_name

Conversation

@polc
Copy link
Contributor

QA
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
LicenseMIT

When displaying help of an Application with a name but no version, it show "Console Tool" instead of the application name.

Copy link
Contributor

Choose a reason for hiding this comment

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

else is not required here.

@nicolas-grekas
Copy link
Member

👍
Status: reviewed

Copy link
Contributor

Choose a reason for hiding this comment

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

More clear would be IMO:

if ('UNKNOWN' !==$this->getName()) {if ('UNKNOWN' !==$this->getVersion()) {returnsprintf('<info>%s</info> version <comment>%s</comment>',$this->getName(),$this->getVersion());    }returnsprintf('<info>%s</info>',$this->getName());}

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

It's what I had done at first but I thought I was less clear. Anyway I can change no problems !

@dunglas
Copy link
Member

👍

@fabpot
Copy link
Member

Thank you@polc.

fabpot added a commit that referenced this pull requestJan 14, 2016
…rsion set (polc)This PR was squashed before being merged into the 2.3 branch (closes#17326).Discussion----------[Console] Display console application name even when no version set| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| License       | MITWhen displaying help of an Application with a name but no version, it show "Console Tool" instead of the application name.Commits-------61e810e [Console] Display console application name even when no version set
@fabpotfabpot closed thisJan 14, 2016
@fabpotfabpot mentioned this pull requestJan 14, 2016
@polcpolc deleted the console_application_name branchJanuary 14, 2016 10:02
@polcpolc restored the console_application_name branchJanuary 14, 2016 10:02
@polcpolc deleted the console_application_name branchJanuary 14, 2016 10:02
This was referencedJan 14, 2016
@fabpotfabpot mentioned this pull requestFeb 3, 2016
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.

7 participants

@polc@nicolas-grekas@dunglas@fabpot@stloyd@1ed@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp