Skip to content

Commit

Permalink
add VERSION constant (and put it in the usage output)
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Jun 2, 2014
1 parent 572afa6 commit 910456a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
}

Expand Down

0 comments on commit 910456a

Please sign in to comment.