Skip to content

Comments

Fix required argument validation#55

Closed
jefersondaniel wants to merge 1 commit intopython-poetry:mainfrom
jefersondaniel:master
Closed

Fix required argument validation#55
jefersondaniel wants to merge 1 commit intopython-poetry:mainfrom
jefersondaniel:master

Conversation

@jefersondaniel
Copy link

When a required argument is followed by an optional one, then the required argument is not validated. Example:

from cleo import Command


class HelloWorldCommand(Command):
    """
    Hello World Command

    app:hello_world
        {required_arg : Some required argument}
        {non_required_arg? : Some non required argument}
        {--option=5 : Some option that defaults to 5}
    """

    def handle(self):
        self.line('Hello world')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant