click-contrib / click-default-group

Extends click.Group to invoke a command without explicit subcommand name.
BSD 3-Clause "New" or "Revised" License
73 stars 17 forks source link

conflict with other extensions like click-help-colors #13

Open ssbarnea opened 4 years ago

ssbarnea commented 4 years ago

Due to the use of custom class, I discovered that I cannot add the default group to a group that is already using it:

from click_help_colors import HelpColorsGroup, HelpColorsCommand

@click.group(
    cls=HelpColorsGroup,
    help_headers_color='yellow'
)

Is there a workaround for this?

y-marui commented 2 years ago

We have to define a new class to combine classes. eg. DefaultGroup and HelpColorsGroup.