I have a group-command (called groupcmd) which I would like the user to be able to invoke without having to specify a subcommand. I also have a resultcallback (via @groupcmd.resultcallback) which I would like to call after the group-command finishes for processing errors and logging them to file.
If I set invoke_without_command=True inside of the @click.group definition, then the resultcallback does not get called.
I am using click 6.6 on python 2.7.12
I have a group-command (called
groupcmd) which I would like the user to be able to invoke without having to specify a subcommand. I also have a resultcallback (via@groupcmd.resultcallback) which I would like to call after the group-command finishes for processing errors and logging them to file.If I set
invoke_without_command=Trueinside of the@click.groupdefinition, then the resultcallback does not get called.I am using click 6.6 on python 2.7.12