Skip to content

Instantly share code, notes, and snippets.

@benlansdell
Created December 29, 2020 18:57
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 benlansdell/e8a3ee7f15f8ee76f24cc1fc0c9fb6e3 to your computer and use it in GitHub Desktop.
Save benlansdell/e8a3ee7f15f8ee76f24cc1fc0c9fb6e3 to your computer and use it in GitHub Desktop.
Basic python program template
#!/usr/bin/env python3
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('headnode', type = str)
def main(args):
print("Now you can do stuff with the arguments")
if __name__ == "__main__":
args = parser.parse_args()
main(args)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment