From 64df32e1c94c153eecc8562b34257757fa1eacda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Thu, 15 Dec 2005 01:23:40 +0000 Subject: [PATCH] * fix: info cmd takes 1 arg, run help after api init --- pisi/cli/commands.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pisi/cli/commands.py b/pisi/cli/commands.py index c6d7069e..e86f9304 100644 --- a/pisi/cli/commands.py +++ b/pisi/cli/commands.py @@ -526,11 +526,13 @@ Usage: info ... help=_("Show only paths.")) def run(self): - if len(self.args) != 2: - self.help() - return self.init(True) + + if len(self.args) != 1: + self.help() + return + for arg in self.args: if ctx.componentdb.has_component(arg): component = ctx.componentdb.get_component(arg)