[yum-commits] Branch 'yum-3_2_X' - cli.py

skvidal at osuosl.org skvidal at osuosl.org
Tue Nov 17 15:59:25 UTC 2009


 cli.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d1f7ea4ff0977c4370afa90c3ac8cc30ebf91f13
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Mon Nov 16 16:56:00 2009 -0500

    don't output usage() when the user fatfingers a command

diff --git a/cli.py b/cli.py
index 8c67d5d..8f50541 100644
--- a/cli.py
+++ b/cli.py
@@ -278,7 +278,8 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
                 self.verbose_logger.log(yum.logginglevels.DEBUG_4, '   %s', arg)
         
         if self.basecmd not in self.yum_cli_commands:
-            self.usage()
+            self.logger.critical(_('No such command: %s. Please use %s --help'),
+                                  self.basecmd, sys.argv[0])
             raise CliError
     
         self.yum_cli_commands[self.basecmd].doCheck(self, self.basecmd, self.extcmds)


More information about the Yum-commits mailing list