Created
January 30, 2014 01:08
-
-
Save Steelsouls/8700743 to your computer and use it in GitHub Desktop.
Python: Template Command-Line 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 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