diff options
-rw-r--r-- | skate/cmd/skate-reduce/main.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/skate/cmd/skate-reduce/main.go b/skate/cmd/skate-reduce/main.go index 3130a22..8b6f086 100644 --- a/skate/cmd/skate-reduce/main.go +++ b/skate/cmd/skate-reduce/main.go @@ -60,6 +60,7 @@ package main import ( "bufio" "flag" + "fmt" "io/ioutil" "log" "os" @@ -95,9 +96,20 @@ var ( "unknown": skate.MatchResult{Status: skate.StatusUnknown, Reason: skate.ReasonUnknown}, "isbn": skate.MatchResult{Status: skate.StatusExact, Reason: skate.ReasonISBN}, } + + help = `Reduce modes + +TODO: table of modes and inputs, or specific link to docs +` ) func main() { + flag.Usage = func() { + fmt.Fprintf(flag.CommandLine.Output(), "Usage of %s:\n", os.Args[0]) + flag.PrintDefaults() + fmt.Println() + fmt.Println(help) + } flag.Parse() if *logFile != "" { f, err := os.OpenFile(*logFile, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644) |