Yaniv Dary has uploaded a new change for review.

Change subject: packaging: setup now supports option --help (#970545)
......................................................................

packaging: setup now supports option --help (#970545)

Bug-Url: https://bugzilla.redhat.com/970545

Change-Id: I273471c98e17d0b7a95fa77c761393ebf484ade3
Signed-off-by: Yaniv Dary <[email protected]>
---
M packaging/ovirt-engine-reports-setup.py
1 file changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-reports refs/changes/37/16537/1

diff --git a/packaging/ovirt-engine-reports-setup.py 
b/packaging/ovirt-engine-reports-setup.py
index 25d74e2..80a6f81 100755
--- a/packaging/ovirt-engine-reports-setup.py
+++ b/packaging/ovirt-engine-reports-setup.py
@@ -20,6 +20,7 @@
 import tempfile
 import re
 import glob
+import argparse
 
 log_file = utils.initLogging("ovirt-engine-reports-setup", 
"/var/log/ovirt-engine")
 
@@ -677,6 +678,11 @@
     rc = 0
     preserveReportsJobs = False
     userPassword = False
+
+    parser = argparse.ArgumentParser(description='Installs or upgrades your 
oVirt Engine Reports')
+    # Catch when calling ovirt-engine-dwh-setup --help
+    args = parser.parse_args()
+
     try:
         logging.debug("starting main()")
         print "Welcome to ovirt-engine-reports setup utility"


-- 
To view, visit http://gerrit.ovirt.org/16537
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I273471c98e17d0b7a95fa77c761393ebf484ade3
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-reports
Gerrit-Branch: master
Gerrit-Owner: Yaniv Dary <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to