Python-Dojo / Dojo-Helper-App

Place for people to complete bounties supplied by Ray in The Python Dojo discord channel.
MIT License
2 stars 1 forks source link

Create skeleton on app which allows people to easily extend it. #2

Open JustCallMeRay opened 1 year ago

JustCallMeRay commented 1 year ago
GeeCastro commented 1 year ago

Hi Ray, would this be something like click?

import click

@click.command()
@click.option('--count', default=1, help='Number of greetings.')
@click.option('--name', prompt='Your name',
              help='The person to greet.')
def hello(count, name):
    """Simple program that greets NAME for a total of COUNT times."""
    for x in range(count):
        click.echo(f"Hello {name}!")

if __name__ == '__main__':
    hello()