Created
September 21, 2019 18:22
-
-
Save eladkehat/868d905a2998fe9ccd960e2fc0a92778 to your computer and use it in GitHub Desktop.
Template (outline) for a Python3 script.
This file contains hidden or 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
#!/usr/bin/env python3 | |
"""Python3 script template.""" | |
import argparse | |
def run(args): | |
pass | |
def parse_arguments(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--arg1', default=1) | |
args = parser.parse_args() | |
return args | |
if __name__ == '__main__': | |
args = parse_arguments() | |
run(args) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment