import click


def module_template_options(func):
    """Merge the module template option decorators into a single one."""
    template_dec = click.option("--template",
                                "-t",
                                default="csharp",
                                show_default=True,
                                required=False,
                                type=click.Choice(["c", "csharp", "java", "nodejs", "python", "csharpfunction"]),
                                help="Specify the template used to create the default module")
    group_id_dec = click.option("--group-id",
                                "-g",
                                default="com.edgemodule",
                                show_default=True,
                                help="(Java modules only) Specify the groupId")
    return template_dec(group_id_dec(func))