Commits

Miki Tebeka committed 037b01f

-version

  • Participants
  • Parent commits 3a74461

Comments (0)

Files changed (1)

 	"os"
 )
 
+const (
+	Version = "0.1.1"
+)
+
 // Current backend
 var backend string
 
 		flag.PrintDefaults()
 	}
 	port := flag.Int("httpPort", 6777, "http interface port")
+	version := flag.Bool("version", false, "show version and exit")
 	flag.Parse()
+
+	if *version {
+		fmt.Printf("seamless %s\n", Version)
+		os.Exit(0)
+	}
+
 	if flag.NArg() != 2 {
 		flag.Usage()
 		os.Exit(1)