cleo
cleo copied to clipboard
HELP: How to remove default flags "--quiet, --version, --ansi, --no-ansi, --no-interaction, --verbose" from commands?
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.
This is currently not available.
Could you show me where in the code these flags are created? So I could add this functionality of suppressing the flags.
Could you show me where in the code these flags are created? So I could add this functionality of suppressing the flags.
https://github.com/python-poetry/cleo/blob/675ec7e1d89aa65ce6dbca0938a89b4788db1045/src/cleo/application.py#L549