Update flags

This commit is contained in:
bel
2019-12-07 14:09:24 -07:00
parent de93fa2145
commit 8728b7d694
2 changed files with 10 additions and 10 deletions

View File

@@ -8,12 +8,12 @@ import (
)
var (
Port string
StoreType string
StoreAddr string
StoreUser string
StorePass string
Public string
Port string
StoreType string
StoreAddr string
StoreUser string
StorePass string
MyTinyTodo string
)
func init() {
@@ -31,7 +31,7 @@ func Refresh() {
as.Append(args.STRING, "storeaddr", "addr of store", "")
as.Append(args.STRING, "storeuser", "user of store", "")
as.Append(args.STRING, "storepass", "pass of store", "")
as.Append(args.STRING, "public", "url of php server", "http://localhost:38808")
as.Append(args.STRING, "mtt", "url of php server", "http://localhost:38808")
if err := as.Parse(); err != nil {
panic(err)
}
@@ -41,5 +41,5 @@ func Refresh() {
StoreAddr = as.Get("storeaddr").GetString()
StoreUser = as.Get("storeuser").GetString()
StorePass = as.Get("storepass").GetString()
Public = as.Get("public").GetString()
MyTinyTodo = as.Get("mtt").GetString()
}