Better help
This commit is contained in:
parent
01cbcc184e
commit
22f20f115e
7
main.go
7
main.go
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user