Skip to content

Instantly share code, notes, and snippets.

Created January 30, 2014 01:08
What would you like to do?
Python: Template Command-Line Script
#!/usr/bin/env python
def main():
# Make list of command line arguments, omitting the script itself.
args = sys.argv[1:]
if not args:
print "usage: "
if __name__ == "__main__":
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment