Better help

This commit is contained in:
Alex Yatskov 2024-03-30 18:57:52 -07:00
parent 01cbcc184e
commit 22f20f115e

View File

@ -8,6 +8,7 @@ import (
"fmt"
"log"
"os"
"path/filepath"
"regexp"
"sort"
"strconv"
@ -153,6 +154,12 @@ func main() {
lastFrame = flag.Int("lastFrame", 3030, "kanji last frame")
)
flag.Usage = func() {
fmt.Fprintf(os.Stderr, "Usage: %s [options] <stories.json> [kanji.txt]\n", filepath.Base(os.Args[0]))
fmt.Fprintln(os.Stderr, "Options:")
flag.PrintDefaults()
}
flag.Parse()
args := flag.Args()