Fixup use of argparse for python3.3

The version keyword is no longer supported in argparse in python3.3.

Switch to using '--version' option instead.
This commit is contained in:
James Page
2013-10-02 11:41:56 +01:00
parent ac9d38e83a
commit a96ffec9a4

View File

@@ -84,8 +84,9 @@ def run():
"""Run compiler
"""
aparse = argparse.ArgumentParser(description='LessCss Compiler',
epilog='<< jtm@robot.is @_o >>',
version=VERSION_STR)
epilog='<< jtm@robot.is @_o >>')
aparse.add_argument('-v', '--version', action='version',
version=VERSION_STR)
aparse.add_argument('-I', '--include', action="store", type=str,
help="Included less-files (comma separated)")
aparse.add_argument('-V', '--verbose', action="store_true",