clearml/examples/frameworks/click/click_single_cmd.py

19 lines
497 B
Python
Raw Permalink Normal View History

2021-07-04 06:31:47 +00:00
import click
from clearml import Task
@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):
task = Task.init(project_name='examples', task_name='Click single command')
2021-07-04 06:31:47 +00:00
"""Simple program that greets NAME for a total of COUNT times."""
for x in range(count):
2021-08-04 08:30:32 +00:00
click.echo("Hello {}!".format(name))
2021-07-04 06:31:47 +00:00
if __name__ == '__main__':
hello()