Add a Debugf() helper and a -D (debug) flag to docker

This commit is contained in:
Guillaume J. Charmes
2013-03-22 11:44:12 -07:00
parent c57727fd65
commit 6e507b9460
5 changed files with 32 additions and 3 deletions
+3
View File
@@ -16,8 +16,11 @@ func main() {
docker.SysInit()
return
}
// FIXME: Switch d and D ? (to be more sshd like)
fl_daemon := flag.Bool("d", false, "Daemon mode")
fl_debug := flag.Bool("D", false, "Debug mode")
flag.Parse()
rcli.DEBUG_FLAG = *fl_debug
if *fl_daemon {
if flag.NArg() != 0 {
flag.Usage()