Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fastest CLI #3

Open
szepeviktor opened this issue Dec 29, 2016 · 1 comment
Open

Fastest CLI #3

szepeviktor opened this issue Dec 29, 2016 · 1 comment

Comments

@szepeviktor
Copy link

@blackms Please take a look at 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('Hello %s!' % name)

if __name__ == '__main__':
    hello()

Seems like a busy project for implementing CLI from an API library: https://github.com/pallets/click/issues

@szepeviktor
Copy link
Author

szepeviktor commented Dec 29, 2016

Click is a Python package for creating beautiful command line interfaces
in a composable way with as little code as necessary.

I think you would like it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant