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

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

 



---
 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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux