Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/desync/make.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ to STDOUT.`,
flags := cmd.Flags()
flags.StringVarP(&opt.store, "store", "s", "", "target store")
flags.StringVarP(&opt.chunkSize, "chunk-size", "m", "16:64:256", "min:avg:max chunk size in kb")
flags.BoolVarP(&opt.printStats, "print-stats", "", false, "print chunking statistics and exit without writing the index file")
flags.BoolVarP(&opt.printStats, "print-stats", "", false, "print chunking statistics to stderr when done")
addStoreOptions(&opt.cmdStoreOptions, flags)
return cmd
}
Expand Down Expand Up @@ -81,7 +81,7 @@ func runMake(ctx context.Context, opt makeOptions, args []string) error {
}
}
if opt.printStats {
return printJSON(stderr, stats) // write to stderr since stdout could be used for index data
printJSON(stderr, stats) // write to stderr since stdout could be used for index data
}
return storeCaibxFile(index, indexFile, opt.cmdStoreOptions)
}
Expand Down