From 934ae47555809fc6ea8b70aa68639cf671cd2520 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Fri, 23 Jan 2015 15:14:22 +0000 Subject: [PATCH] Use binary file name instead of full path Signed-off-by: Radek Simko --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index e5dce5ac62..1093258fb9 100644 --- a/main.go +++ b/main.go @@ -2,6 +2,7 @@ package main import ( "os" + "path" log "github.com/Sirupsen/logrus" "github.com/codegangsta/cli" @@ -16,7 +17,7 @@ func main() { } app := cli.NewApp() - app.Name = os.Args[0] + app.Name = path.Base(os.Args[0]) app.Commands = Commands app.CommandNotFound = cmdNotFound app.Usage = "Create and manage machines running Docker."