diff --git a/main.go b/main.go index 9d4b575..2b3f880 100644 --- a/main.go +++ b/main.go @@ -10,7 +10,14 @@ import ( "github.com/gorilla/handlers" ) +// OctyneVersion ... Last version of Octyne this code is based on. +const OctyneVersion = "1.0.0-beta.1" + func main() { + if len(os.Args) >= 2 && os.Args[1] == "--version" { + println("octyne version " + OctyneVersion) + return + } log.SetPrefix("[Octyne] ") // Read config.