Skip to content

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

Closed
@Chi-teck

Description

@Chi-teck

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