Fix tests with dockerinit lookup path

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby 2014-02-24 13:40:17 -08:00
parent d388db815c
commit b899d9bc44

View file

@ -24,7 +24,7 @@ var (
ErrWrongArguments = errors.New("Wrong argument count")
)
func init() {
func registerFlags() {
flag.StringVar(&console, "console", "", "console (pty slave) path")
flag.StringVar(&logFile, "log", "none", "log options (none, stderr, or a file path)")
flag.IntVar(&pipeFd, "pipe", 0, "sync pipe fd")
@ -33,6 +33,8 @@ func init() {
}
func main() {
registerFlags()
if flag.NArg() < 1 {
log.Fatal(ErrWrongArguments)
}