Created
March 25, 2011 02:40
Revisions
-
minrk created this gist
Mar 25, 2011 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ #!/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',type=unicode) print sys.argv argv = [ a.decode(sys.stdin.encoding) for a in sys.argv] print argv ns = parser.parse_args() print ns