Bring back build all when passing no components.
This commit is contained in:
parent
a76f4921e4
commit
f3e7727796
|
@ -244,9 +244,9 @@ def buildCmd(args: cli.Args):
|
|||
registry = model.Registry.use(args)
|
||||
target = model.Target.use(args)
|
||||
componentSpec = args.consumeArg()
|
||||
if componentSpec is None:
|
||||
raise RuntimeError("No component specified")
|
||||
component = registry.lookup(componentSpec, model.Component)
|
||||
component = None
|
||||
if componentSpec is not None:
|
||||
component = registry.lookup(componentSpec, model.Component)
|
||||
build(target, registry, component)[0]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue