Skip to content

Instantly share code, notes, and snippets.

@Xvezda
Created April 26, 2017 08:44
Show Gist options
  • Save Xvezda/681cad385a05636ee564f4f2d129ebde to your computer and use it in GitHub Desktop.
Save Xvezda/681cad385a05636ee564f4f2d129ebde to your computer and use it in GitHub Desktop.
how to argc(v) in python :)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
def main(argc, argv):
print 'argc:', argc
print 'argv:', argv
if __name__ == '__main__':
main(len(sys.argv), sys.argv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment