Skip to content

Instantly share code, notes, and snippets.

@gonsie
Created June 25, 2012 17:23
Show Gist options
  • Select an option

  • Save gonsie/2990001 to your computer and use it in GitHub Desktop.

Select an option

Save gonsie/2990001 to your computer and use it in GitHub Desktop.
Quick and Dirty Python Template
def main():
pass
import sys
if __name__ == "__main__":
if len(sys.argv) == 1:
print "Usage:", sys.argv[0], "arg1 arg2"
else:
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment