2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-05 00:00:14 +00:00
cointop/main.go
2018-05-12 18:47:06 -07:00

29 lines
385 B
Go

package main
import (
"flag"
"fmt"
"github.com/miguelmota/cointop/cointop"
)
var version = "1.0.1"
func main() {
var ver, test bool
flag.BoolVar(&ver, "v", false, "Version")
flag.BoolVar(&test, "test", false, "Run test")
flag.Parse()
if ver {
fmt.Println(version)
} else if test {
doTest()
} else {
cointop.New().Run()
}
}
func doTest() {
cointop.New().Exit()
}