On Thu, 2008-01-24 at 19:32 -0500, James Bowes wrote:
> def doCommand(self, base, basecmd, extcmds):
> +        if base.yum_cli_commands.has_key(extcmds[0]):
> +            command = base.yum_cli_commands[extcmds[0]]
> +            canonical_name = command.getNames()[0]
> +            # XXX need detailed help here, too
> +            usagestr = "%s %s\n\n%s" % (canonical_name,
> command.getUsage(),
> +                    command.getSummary())
> +            base.verbose_logger.log(logginglevels.INFO_2, usagestr)

 It all looks awesome, but the above needs to take into account that
some plugins register commands and won't have the summary/usage methods.

-- 
James Antill <[EMAIL PROTECTED]>
Red Hat

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to