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:
parent
d388db815c
commit
b899d9bc44
1 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,7 @@ var (
|
||||||
ErrWrongArguments = errors.New("Wrong argument count")
|
ErrWrongArguments = errors.New("Wrong argument count")
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func registerFlags() {
|
||||||
flag.StringVar(&console, "console", "", "console (pty slave) path")
|
flag.StringVar(&console, "console", "", "console (pty slave) path")
|
||||||
flag.StringVar(&logFile, "log", "none", "log options (none, stderr, or a file path)")
|
flag.StringVar(&logFile, "log", "none", "log options (none, stderr, or a file path)")
|
||||||
flag.IntVar(&pipeFd, "pipe", 0, "sync pipe fd")
|
flag.IntVar(&pipeFd, "pipe", 0, "sync pipe fd")
|
||||||
|
@ -33,6 +33,8 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
registerFlags()
|
||||||
|
|
||||||
if flag.NArg() < 1 {
|
if flag.NArg() < 1 {
|
||||||
log.Fatal(ErrWrongArguments)
|
log.Fatal(ErrWrongArguments)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue