* fix: info cmd takes 1 arg, run help after api init
This commit is contained in:
@@ -526,11 +526,13 @@ Usage: info <package1> <package2> ... <packagen>
|
|||||||
help=_("Show only paths."))
|
help=_("Show only paths."))
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
if len(self.args) != 2:
|
|
||||||
self.help()
|
|
||||||
return
|
|
||||||
|
|
||||||
self.init(True)
|
self.init(True)
|
||||||
|
|
||||||
|
if len(self.args) != 1:
|
||||||
|
self.help()
|
||||||
|
return
|
||||||
|
|
||||||
for arg in self.args:
|
for arg in self.args:
|
||||||
if ctx.componentdb.has_component(arg):
|
if ctx.componentdb.has_component(arg):
|
||||||
component = ctx.componentdb.get_component(arg)
|
component = ctx.componentdb.get_component(arg)
|
||||||
|
|||||||
Reference in New Issue
Block a user