Skip to content

Instantly share code, notes, and snippets.

@ashwin
Created February 25, 2014 06:59
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 ashwin/9204104 to your computer and use it in GitHub Desktop.
Save ashwin/9204104 to your computer and use it in GitHub Desktop.
Print command-line arguments in Python
import sys
def main():
for arg in sys.argv:
print arg
if "__main__" == __name__:
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment