Skip to content

HELP: How to remove default flags "--quiet, --version, --ansi, --no-ansi, --no-interaction, --verbose" from commands? #304

Open

Description

@marcosdotme

How to remove the default "--quiet, --version, --ansi, --no-ansi, --no-interaction, --verbose" flags from a custom command that inherites from "from cleo.commands.command import Command", like the GreetCommand showed in the demo on README?

I created a command and don't want to show these default flags to users.

Activity

  1. Secrus commented on Jan 22, 2023

    @Secrus
    Member

    This is currently not available.

  2. marcosdotme commented on Jan 23, 2023

    @marcosdotme
    Author

    Could you show me where in the code these flags are created? So I could add this functionality of suppressing the flags.

  3. tkuipers commented on Apr 10, 2023

    @tkuipers

    Could you show me where in the code these flags are created? So I could add this functionality of suppressing the flags.

    def _default_definition(self) -> Definition:

  4. added this to the Future milestone on Jul 7, 2023
  5. modified the milestones: Future, 3.0 on Nov 28, 2024
  6. added
    enhancement
    on Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions