Skip to content

Instantly share code, notes, and snippets.

@Steelsouls
Created January 30, 2014 01:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Steelsouls/8700743 to your computer and use it in GitHub Desktop.
Save Steelsouls/8700743 to your computer and use it in GitHub Desktop.
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: "
sys.exit(1)
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment