887248d354
Use a simple script to check the basic usage. Since this package provides command line arguments, override run_sample_scripts to call the script with arguments and check the expected output. Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
13 lines
215 B
Python
13 lines
215 B
Python
import click
|
|
|
|
|
|
@click.command()
|
|
@click.argument("foo")
|
|
@click.option("--bar", is_flag=True, help="help for bar")
|
|
def main(foo, bar):
|
|
click.echo("{}, {}".format(foo, bar))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|