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

Appearance settings

[Console] Help command reports wrong usage in a single command application #27953

Copy link
Copy link
Closed
@Chi-teck

Description

@Chi-teck
Issue body actions

Symfony version(s) affected: 4.1.1

Description
The usage section of help command output should not print command name as it is not supported.

How to reproduce

  • Create a simple single command application using this example from documentation.
  • Save it to ./bin/test.php file.
  • Run the script with some argument (./bin/test.php foo) and make sure it works as expected.
  • Run the script as it suggested by help command (./bin/test.php echo foo).
  • The following error should appear: Too many arguments, expected arguments "foo".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.