[yum-commits] yum-util-cli-template
James Antill
james at osuosl.org
Tue Feb 2 04:53:17 UTC 2010
yum-util-cli-template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 2c28f8e6ede6ff3adf0b611b66ef9fc46fe1e47c
Author: James Antill <james at and.org>
Date: Mon Feb 1 23:53:13 2010 -0500
Change cli template: print_help => print format_help() al la. BZ 560369
diff --git a/yum-util-cli-template b/yum-util-cli-template
index 29c7b59..8bfdbcd 100644
--- a/yum-util-cli-template
+++ b/yum-util-cli-template
@@ -43,7 +43,7 @@ class MyYumUtil(YumUtilBase):
opts = self.doUtilConfigSetup()
# Check if there is anything to do.
if len(self.cmds) < 1:
- parser.print_help()
+ print parser.format_help() # Stupid .print_help() commits unicide
sys.exit(0)
# at this point you have the entire YumBaseCli object as 'self'
# you can do whatever you want
More information about the Yum-commits
mailing list