diff --git a/cutekit/builder.py b/cutekit/builder.py index 464ad69..b50fbff 100644 --- a/cutekit/builder.py +++ b/cutekit/builder.py @@ -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]