1
0
mirror of https://github.com/shirou/mqttcli.git synced 2025-05-01 13:48:52 +08:00

add versioning.

This commit is contained in:
Shirou WAKAYAMA 2014-12-15 23:30:11 +09:00
parent e138636529
commit 741608640d

View File

@ -14,6 +14,8 @@ var usage = `
Usage here
`
const version = "0.0.1"
func initFunc() {
log.SetLevel(log.WarnLevel)
log.SetOutput(colorable.NewColorableStdout())
@ -96,6 +98,7 @@ func main() {
app := cli.NewApp()
app.Name = "mqttcli"
app.Usage = usage
app.Version = version
commonFlags := []cli.Flag{
cli.StringFlag{