fortify/version.go

25 lines
251 B
Go
Raw Permalink Normal View History

package main
import (
"flag"
"fmt"
"os"
)
var (
Version = "impure"
printVersion bool
)
func init() {
flag.BoolVar(&printVersion, "V", false, "Print version")
}
func tryVersion() {
if printVersion {
fmt.Println(Version)
os.Exit(0)
}
}