Skip to content

Commit

Permalink
Add version and URL to --help.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Jun 27, 2022
1 parent 8233956 commit 0a71eaa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/dictpress/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type App struct {
fs stuffbin.FileSystem
resultsPg *paginator.Paginator
glossaryPg *paginator.Paginator
lo *log.Logger
lo *log.Logger
}

var (
Expand All @@ -67,6 +67,7 @@ func init() {

f.Usage = func() {
fmt.Println(f.FlagUsages())
fmt.Printf("dictpress (%s). Build dictionary websites. https://dict.press", versionString)
os.Exit(0)
}

Expand Down Expand Up @@ -129,7 +130,7 @@ func main() {
constants: initConstants(ko),
db: db,
fs: initFS(),
lo: lo,
lo: lo,
}

// Install schema.
Expand Down

0 comments on commit 0a71eaa

Please sign in to comment.