Add spec version to runC version cli

Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
This commit is contained in:
Marcos Lilljedahl 2015-11-17 19:14:02 -03:00
parent 776791463d
commit c38fee100d
1 changed files with 2 additions and 1 deletions

View File

@ -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",