cleanup
This commit is contained in:
parent
e965b1aa02
commit
e53d9d70eb
7
main.go
7
main.go
@ -34,8 +34,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
DEFAULT_STRIDE = 10000
|
DEFAULT_STRIDE = 10000
|
||||||
DEFAULT_PORT = 9876
|
DEFAULT_PORT = 9876
|
||||||
|
DEFAULT_LANGUAGE = "english"
|
||||||
)
|
)
|
||||||
|
|
||||||
func usage() {
|
func usage() {
|
||||||
@ -74,7 +75,7 @@ func makeTmpDir() (string, error) {
|
|||||||
func main() {
|
func main() {
|
||||||
var (
|
var (
|
||||||
format = flag.String("format", "", "dictionary format [edict|enamdict|kanjidic|epwing]")
|
format = flag.String("format", "", "dictionary format [edict|enamdict|kanjidic|epwing]")
|
||||||
language = flag.String("language", "english", "dictionary language (if applicable)")
|
language = flag.String("language", DEFAULT_LANGUAGE, "dictionary language (if applicable)")
|
||||||
title = flag.String("title", "", "dictionary title")
|
title = flag.String("title", "", "dictionary title")
|
||||||
port = flag.Int("port", DEFAULT_PORT, "port to serve dictionary JSON on")
|
port = flag.Int("port", DEFAULT_PORT, "port to serve dictionary JSON on")
|
||||||
stride = flag.Int("stride", DEFAULT_STRIDE, "dictionary bank stride")
|
stride = flag.Int("stride", DEFAULT_STRIDE, "dictionary bank stride")
|
||||||
|
Loading…
Reference in New Issue
Block a user