web3-starter-py/CLI_app/yourapp/yourapp.py
Mia von Steinkirch, PhD, MSc 664c47ede5
Remove unused dependencies
2020-02-10 16:14:30 -08:00

32 lines
612 B
Python

#!/usr/bin/env python3
import click
@click.command()
@click.option('-s',
'--source',
default='dev',
nargs=1,
show_default=True,
help='Some source string.')
@click.option('-t',
'--target',
default='staging',
nargs=1,
show_default=True,
help='Some target string.')
@click.option('-p',
'--services',
required=True)
def main(source, target, services):
print(source, target, services)
if __name__ == "__main__":
main(source, target, services)