# HG changeset patch # User Mikael Berthe # Date 1539523391 -7200 # Node ID 25db238bf03f0a29e1a8ca579d6e77f3a059bc1c # Parent a7662fbfbe02602ca7776e24c53fac652fa0c91d Cosmetic changes diff -r a7662fbfbe02 -r 25db238bf03f goduf.go --- a/goduf.go Sun Oct 14 15:21:46 2018 +0200 +++ b/goduf.go Sun Oct 14 15:23:11 2018 +0200 @@ -51,6 +51,7 @@ partialChecksum ) +// Options contains the command-line flags type Options struct { Summary bool OutToJSON bool @@ -579,11 +580,10 @@ flag.BoolVar(&options.Summary, "summary", false, "Do not display the duplicate list") flag.BoolVar(&options.Summary, "s", false, "See --summary") flag.BoolVar(&options.SkipPartial, "skip-partial", false, "Skip partial checksums") - flag.IntVar(&myLog.verbosity, "verbosity", 0, - "Set verbosity level (1-6)") + flag.BoolVar(&options.IgnoreEmpty, "no-empty", false, "Ignore empty files") + flag.IntVar(&myLog.verbosity, "verbosity", 0, "Set verbosity level (1-6)") flag.IntVar(&myLog.verbosity, "vl", 0, "See verbosity") - timings := flag.Bool("timings", false, "Set detailed log timings") - flag.BoolVar(&options.IgnoreEmpty, "no-empty", false, "Ignore empty files") + timings := flag.Bool("timings", false, "Show detailed log timings") flag.Parse()