Bring back build all when passing no components.
This commit is contained in:
parent
11d0667b83
commit
a4c5e2376b
|
@ -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