Skip to content

Instantly share code, notes, and snippets.

@serhii73
Last active July 16, 2019 08:22
Show Gist options
  • Save serhii73/d66328679a088012f1fb00997b184aed to your computer and use it in GitHub Desktop.
Save serhii73/d66328679a088012f1fb00997b184aed to your computer and use it in GitHub Desktop.
click-example
$ python cli.py London
The weather in London right now: light intensity drizzle.
@click.command()
@click.argument('location')
def main(location):
    weather = current_weather(location)
    print(f"The weather in {location} right now: {weather}.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment