From a96ffec9a4864eb90ce05d9322ea8b5127fae96c Mon Sep 17 00:00:00 2001 From: James Page Date: Wed, 2 Oct 2013 11:41:56 +0100 Subject: [PATCH] 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. --- lesscpy/scripts/compiler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lesscpy/scripts/compiler.py b/lesscpy/scripts/compiler.py index f6b92c7..93dabd3 100644 --- a/lesscpy/scripts/compiler.py +++ b/lesscpy/scripts/compiler.py @@ -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",