Skip to content

[Console] "Building a Single Command Application" solution is not usable for commands with arguments  #2290

Closed
@eugene-dounar

Description

@eugene-dounar

The solution proposed in
http://symfony.com/doc/2.2/components/console/single_command_tool.html
does not work if the command accepts an argument.

test.php arg1 

will throw RuntimeException "Not enough arguments".

I'm not sure if this should be fixed or described in the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions