diff options
Diffstat (limited to 'skate')
-rw-r--r-- | skate/cmd/skate-reduce/main.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/skate/cmd/skate-reduce/main.go b/skate/cmd/skate-reduce/main.go index 959dd87..6c69121 100644 --- a/skate/cmd/skate-reduce/main.go +++ b/skate/cmd/skate-reduce/main.go @@ -40,6 +40,7 @@ package main import ( "bufio" "flag" + "io/ioutil" "log" "os" "runtime" @@ -53,6 +54,7 @@ var ( numWorkers = flag.Int("w", runtime.NumCPU(), "number of workers") batchSize = flag.Int("b", 10000, "batch size") mode = flag.String("m", "ref", "mode, e.g. exact, verify, ref, bref, wiki") + quite = flag.Bool("q", false, "be quite") // Possible inputs -- we could switch to a subcommand cli parser? refs = flag.String("F", "", "path to refs input") @@ -72,10 +74,11 @@ var ( func main() { flag.Parse() - + if *quite { + log.SetOutput(ioutil.Discard) + } bw := bufio.NewWriter(os.Stdout) defer bw.Flush() - switch *mode { case "exact": l, f, err := xio.OpenTwo(*releases, *refs) |