[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Add anaconda --version support (#673150).



---
 anaconda |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/anaconda b/anaconda
index fd00c8c..3f74832 100755
--- a/anaconda
+++ b/anaconda
@@ -164,7 +164,11 @@ def symlink_updates(dest_dir, update_dir):
             os.symlink(dest_path, update_path)
 
 def parseOptions(argv = None):
-    op = OptionParser()
+    # Using _isys here so we don't drag in the logging stuff, which is always
+    # complicated.
+    from pyanaconda import _isys
+    op = OptionParser(version="%prog " + _isys.getAnacondaVersion())
+
     # Interface
     op.add_option("-C", "--cmdline", dest="display_mode", action="store_const", const="c",
                   default="g")
-- 
1.7.1.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]