diff options
Diffstat (limited to 'ssllabs-scan.go')
-rw-r--r-- | ssllabs-scan.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ssllabs-scan.go b/ssllabs-scan.go index dd9cb9f..ea1c415 100644 --- a/ssllabs-scan.go +++ b/ssllabs-scan.go @@ -812,9 +812,16 @@ func main() { var conf_usecache = flag.Bool("usecache", false, "If true, accept cached results (if available), else force live scan.") var conf_maxage = flag.Int("maxage", 0, "Maximum acceptable age of cached results, in hours. A zero value is ignored.") var conf_verbosity = flag.String("verbosity", "info", "Configure log verbosity: error, notice, info, debug, or trace.") - + var conf_version = flag.Bool("version", false, "Print version and API location information and exit") + flag.Parse() + if *conf_version { + fmt.Println(USER_AGENT) + fmt.Println("API location: " + apiLocation) + return + } + logLevel = parseLogLevel(strings.ToLower(*conf_verbosity)) globalIgnoreMismatch = *conf_ignore_mismatch |