-
-
Save ivanov/886280 to your computer and use it in GitHub Desktop.
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 | |
# -*- 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