Closed paulocoghi closed 1 year ago
Possibly. You could try extending the ACON::Application
type, then:
default_commands
to remove the list
commanddefault_input_definition
to remove the verbose
option and change version
to use lowercase v
do_run
to check for -v
, then call super@default_command
to be what you need it to beconfigure_io
to change back shell_verbosity
and output.verbosity
back to their defaults as it also checks for -v
I'm not sure if there will be any other side effects, but seems like it should be fine. Up to you if you think it's worth the extra overhead. Another approach could just be to not do this but simply do https://athenaframework.org/Console/Application/#Athena::Console::Application--default-command so your command is executed by default instead of list. And/or if your application is only going to have a single command, checkout https://athenaframework.org/Console/Application/#Athena::Console::Application--single-command-applications.
Thank you again George!
Is it possible to use the "list" command for my own purposes, overwriting its original usage?
Also, I would like to use the lowercase "-v" for version, instead of the original "verbose".
Are those changes possible? There is no problem if it isn't.