Click – Command Line Interface Creation Kit , OH yeahh Python
January 17, 2019Posted by on
This is an Easy to do things in python so we can run scripts using command line Arguments for us as well.
import click @click.command() @click.option('--count',default = 1, ) @click.option('--name',prompt = "What you are supposed to do here?") def test_click(count,name): for i in range(count): click.echo(str(name)) ''' How to run this script: python test_click.py --name "Arsh" --count 4 '''