Better help
This commit is contained in:
parent
01cbcc184e
commit
22f20f115e
7
main.go
7
main.go
@ -8,6 +8,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
@ -153,6 +154,12 @@ func main() {
|
|||||||
lastFrame = flag.Int("lastFrame", 3030, "kanji last frame")
|
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()
|
flag.Parse()
|
||||||
|
|
||||||
args := flag.Args()
|
args := flag.Args()
|
||||||
|
Loading…
Reference in New Issue
Block a user