From c38fee100dcf75f3e0ae41ad5f63d5ad6720a9e5 Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Tue, 17 Nov 2015 19:14:02 -0300 Subject: [PATCH] Add spec version to runC version cli Signed-off-by: Marcos Lilljedahl --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index d1afe630..ddd8626a 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "os" "github.com/Sirupsen/logrus" @@ -37,7 +38,7 @@ func main() { app := cli.NewApp() app.Name = "runc" app.Usage = usage - app.Version = version + app.Version = fmt.Sprintf("%s\nspec version %s", version, specs.Version) app.Flags = []cli.Flag{ cli.StringFlag{ Name: "id",