aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mbf/main.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go
index c382144f..5b1194e7 100644
--- a/cmd/mbf/main.go
+++ b/cmd/mbf/main.go
@@ -62,10 +62,13 @@ func main() {
return
}
if cache, err = pkg.Open(ctx, msg, flagCures, base); err == nil {
- if flagTShift < 0 || flagTShift > 31 {
- flagTShift = 31
+ if flagTShift < 0 {
+ cache.SetThreshold(0)
+ } else if flagTShift > 31 {
+ cache.SetThreshold(1 << 31)
+ } else {
+ cache.SetThreshold(1 << flagTShift)
}
- cache.SetThreshold(1 << flagTShift)
}
return
}).Flag(
@@ -82,7 +85,7 @@ func main() {
"Directory to store cured artifacts",
).Flag(
&flagTShift,
- "tshift", command.IntFlag(31),
+ "tshift", command.IntFlag(-1),
"Dependency graph size exponent, to the power of 2",
)