Skip to content

Commit

Permalink
ヘルプメッセージにversion表示を入れた
Browse files Browse the repository at this point in the history
  • Loading branch information
otiai10 committed Apr 14, 2021
1 parent 4bf5dd6 commit ddbacc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import (
"github.com/otiai10/gat/render"
)

const version = "v1.2.3"

var (
geo, mask bool
usepix bool
Expand All @@ -35,7 +37,7 @@ func init() {
flag.BoolVar(&usepix, "p", false, "iTermであってもピクセル画で表示")
flag.Float64Var(&scale, "s", 1.2, "表示拡大倍率")
flag.Usage = func() {
fmt.Fprintf(os.Stderr, "東京アメッシュをCLIに表示するコマンドです。\n利用可能なオプション:\n")
fmt.Fprintf(os.Stderr, "東京アメッシュをCLIに表示するコマンドです。(%v)\n利用可能なオプション:\n", version)
flag.PrintDefaults()
}
flag.Parse()
Expand Down

0 comments on commit ddbacc3

Please sign in to comment.