Created
April 7, 2018 15:33
-
-
Save d3banjan/2d1721a82c0f34cda395747baaa242dd to your computer and use it in GitHub Desktop.
medium-dscookiecutter-example snip02
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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