Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marcosdotme opened this issue Jan 19, 2023 · 3 comments
Milestone

Comments

@marcosdotme
Copy link

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.

@Secrus
Copy link
Member

Secrus commented Jan 22, 2023

This is currently not available.

@marcosdotme
Copy link
Author

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

@tkuipers
Copy link

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:

@Secrus Secrus added this to the Future milestone Jul 7, 2023
@Secrus Secrus modified the milestones: Future, 3.0 Nov 28, 2024
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

No branches or pull requests

3 participants