aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/mbf/main.go')
-rw-r--r--cmd/mbf/main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go
index b0f5495a..f3ca4eba 100644
--- a/cmd/mbf/main.go
+++ b/cmd/mbf/main.go
@@ -203,11 +203,11 @@ func main() {
"v", command.BoolFlag(false),
"Do not suppress verbose output from init",
).Flag(
- &cm.cures,
+ &cm.attr.Cures,
"cures", command.IntFlag(0),
"Maximum number of dependencies to cure at any given time",
).Flag(
- &cm.jobs,
+ &cm.attr.Jobs,
"jobs", command.IntFlag(0),
"Preferred number of jobs to run, when applicable",
).Flag(
@@ -934,8 +934,8 @@ func main() {
return fmt.Errorf("unknown artifact %q", args[1])
}
- if !a.IsExclusive() && cm.jobs < 1 {
- cm.jobs = runtime.NumCPU()/n + 1
+ if !a.IsExclusive() && cm.attr.Jobs < 1 {
+ cm.attr.Jobs = runtime.NumCPU()/n + 1
}
res := make([]unique.Handle[pkg.Checksum], n)