Skip to content

Instantly share code, notes, and snippets.

@ivanov
Forked from minrk/unicode.py
Created March 25, 2011 02:45
Show Gist options
  • Save ivanov/886280 to your computer and use it in GitHub Desktop.
Save ivanov/886280 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- encoding: utf-8
#from IPython.external
import sys
import argparse
if __name__ == '__main__':
parser = argparse.ArgumentParser()
paa = parser.add_argument
paa('-p', '--profile',
dest='profile')
print sys.argv
argv = [ a.decode(sys.stdin.encoding) for a in sys.argv]
print argv
ns = parser.parse_args()
print ns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment