From 6fa804838baf6655d1f9b30e5c028dff6e0b3bc9 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Wed, 2 Sep 2015 10:15:44 +1000 Subject: [PATCH] Include the Go version in the gcsfuse version string. --- flags.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/flags.go b/flags.go index 5681c01e66..841c0daad4 100644 --- a/flags.go +++ b/flags.go @@ -15,7 +15,9 @@ package main import ( + "fmt" "os" + "runtime" "time" "github.com/codegangsta/cli" @@ -49,9 +51,14 @@ COPYRIGHT: } func newApp() (app *cli.App) { + version := fmt.Sprintf( + "%s (built with Go version %s)", + gcsfuseVersion, + runtime.Version()) + app = &cli.App{ Name: "gcsfuse", - Version: gcsfuseVersion, + Version: version, Usage: "Mount a GCS bucket locally", HideHelp: true, Writer: os.Stderr,