From 910456a29a40a593490775795a7286ff548b6021 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Mon, 2 Jun 2014 13:40:53 -0600 Subject: [PATCH] add VERSION constant (and put it in the usage output) --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index a7570d1..ccc669d 100644 --- a/main.go +++ b/main.go @@ -9,6 +9,8 @@ import ( "github.com/dotcloud/docker/pkg/user" ) +const VERSION = "1.0" + func main() { log.SetFlags(0) // no timestamps on our logs @@ -17,6 +19,7 @@ func main() { log.Printf(" ie: %s tianon bash", os.Args[0]) log.Printf(" %s nobody:root bash -c 'whoami && id'", os.Args[0]) log.Printf(" %s 1000:1 id", os.Args[0]) + log.Printf("%s version: %s", os.Args[0], VERSION) os.Exit(1) }