Skip to content

resultcallback is not being called when invoke_without_command=True #1178

Description

@trbedwards

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    f:chainfeature: chained commands

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions