def get_help_option(self, ctx):
help_options = self.get_help_option_names(ctx)<EOL>if not help_options or not self.add_help_option:<EOL><INDENT>return<EOL><DEDENT>def show_help(ctx, param, value):<EOL><INDENT>if value and not ctx.resilient_parsing:<EOL><INDENT>if not ctx.invoked_subcommand:<EOL><INDENT>click.echo(format_help(ctx.get_help()))<EOL><DEDENT>else:<EOL><INDENT>click.echo(ctx.get_help(), color=ctx.color)<EOL><DEDENT>ctx.exit()<EOL><DEDENT><DEDENT>return click.Option(<EOL>help_options,<EOL>is_flag=True,<EOL>is_eager=True,<EOL>expose_value=False,<EOL>callback=show_help,<EOL>help='<STR_LIT>')<EOL>
Override for showing formatted main help via --help and -h options