package main

import (
	"fmt"
	"github.com/codegangsta/cli"
	"os"
)

func main() {
	app := cli.NewApp()
	app.Name = "docker-inject"
	app.Usage = "Copy files/directories from hosts to running Docker containers"
	app.Version = "0.0.0"
	app.HideHelp = true
	app.Flags = []cli.Flag{
		cli.HelpFlag,
	}
	app.Action = func(c *cli.Context) {
		inj, err := newInjector(os.Stderr, c.Args())
		if err != nil {
			fmt.Fprintf(os.Stderr, "%s: %s\n", app.Name, err)
			cli.ShowAppHelp(c)
			os.Exit(1)
		}
		if err := inj.run(); err != nil {
			fmt.Fprintf(os.Stderr, "%s: %s\n", app.Name, err)
			cli.ShowAppHelp(c)
			os.Exit(1)
		}
	}
	app.Run(os.Args)
}

package main

import (
	"fmt"
	"github.com/codegangsta/cli"
	"os"
)

func main() {
	app := cli.NewApp()
	app.Name = "docker-inject"
	app.Usage = "Copy files/directories from hosts to running Docker containers"
	app.Version = "0.0.0"
	app.Action = func(c *cli.Context) {
		inj, err := newInjector(os.Stderr, c.Args())
		if err != nil {
			fmt.Fprintf(os.Stderr, "%s: %s\n", app.Name, err)
			cli.ShowAppHelp(c)
			os.Exit(1)
		}
		if err := inj.run(); err != nil {
			fmt.Fprintf(os.Stderr, "%s: %s\n", app.Name, err)
			cli.ShowAppHelp(c)
			os.Exit(1)
		}
	}
	app.Run(os.Args)
}

--- 
+++ 
@@ -11,6 +11,10 @@
 	app.Name = "docker-inject"
 	app.Usage = "Copy files/directories from hosts to running Docker containers"
 	app.Version = "0.0.0"
+	app.HideHelp = true
+	app.Flags = []cli.Flag{
+		cli.HelpFlag,
+	}
 	app.Action = func(c *cli.Context) {
 		inj, err := newInjector(os.Stderr, c.Args())
 		if err != nil {
Disable the default 'help' subcommand
