Skip to content

Commit

Permalink
Include the Go version in the gcsfuse version string.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsa committed Sep 2, 2015
1 parent b1fead2 commit 6fa8048
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion flags.go
Expand Up @@ -15,7 +15,9 @@
package main

import (
"fmt"
"os"
"runtime"
"time"

"github.com/codegangsta/cli"
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6fa8048

Please sign in to comment.