From bb04b466a0a78d160fb8b45c7f4d91697940f2f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Mon, 5 Jun 2006 17:33:24 +0000 Subject: [PATCH] * now, you'll see the shortcuts better :) tell me if you want shortcuts for the ones that don't have shortcuts, make sure they are 2 letters long --- pisi/cli/commands.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pisi/cli/commands.py b/pisi/cli/commands.py index a69f132f..df740261 100644 --- a/pisi/cli/commands.py +++ b/pisi/cli/commands.py @@ -46,7 +46,10 @@ class Command(object): commandcls = Command.cmd_dict[name] trans = gettext.translation('pisi', fallback=True) summary = trans.ugettext(commandcls.__doc__).split('\n')[0] - s += '%20s - %s\n' % (commandcls.name[0], summary) + name = commandcls.name[0] + if commandcls.name[1]: + name += ' (%s)' % commandcls.name[1] + s += '%20s - %s\n' % (name, summary) return s @staticmethod