def handle_parse_result()

in composer_local_dev/cli.py [0:0]


    def handle_parse_result(self, ctx, opts, args):
        current_opt: bool = self.name in opts
        for mutex_opt in self.mutual:
            if mutex_opt in opts:
                if current_opt:
                    raise click.UsageError(
                        f"Illegal usage: "
                        f"'{apply_cli_option_format(self.name)}' "
                        f"cannot be used together with "
                        f"'{apply_cli_option_format(mutex_opt)}'.",
                        ctx=ctx,
                    )
                else:
                    self.prompt = None
        return super().handle_parse_result(ctx, opts, args)