Skip to content

Instantly share code, notes, and snippets.

@Robert-96
Created February 26, 2019 10:53
Show Gist options
  • Save Robert-96/8c523507ad3c7bd50b706df1a93c4c52 to your computer and use it in GitHub Desktop.
Save Robert-96/8c523507ad3c7bd50b706df1a93c4c52 to your computer and use it in GitHub Desktop.
Click help option with `--help` and `-h`
import click
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
@click.group(context_settings=CONTEXT_SETTINGS)
def cli():
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment