From 4dc60e4f1e7db13caf0e733f289fe03d1bb110f2 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 21 Feb 2013 20:50:08 +0100 Subject: [PATCH] added --version option Every program should have this, really. --- aqt/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/__init__.py b/aqt/__init__.py index 58dcfa9c2..2f25acbba 100644 --- a/aqt/__init__.py +++ b/aqt/__init__.py @@ -163,7 +163,7 @@ class AnkiApp(QApplication): def parseArgs(argv): "Returns (opts, args)." - parser = optparse.OptionParser() + parser = optparse.OptionParser(version="%prog " + appVersion) parser.usage = "%prog [OPTIONS] [file to import]" parser.add_option("-b", "--base", help="path to base folder") parser.add_option("-p", "--profile", help="profile name to load")