Skip to content

Instantly share code, notes, and snippets.

@d3banjan
Created April 7, 2018 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d3banjan/2d1721a82c0f34cda395747baaa242dd to your computer and use it in GitHub Desktop.
Save d3banjan/2d1721a82c0f34cda395747baaa242dd to your computer and use it in GitHub Desktop.
medium-dscookiecutter-example snip02
import os, click, logging
@click.command()
@click.option('--option',default='default')
@click.argument('string',nargs=-1)
def main(option,string):
print("the argument(s) is(are) \"{}\" with an optional modifier {}".format(",".join(string),option))
if __name__=='__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment