Skip to content

Commit

Permalink
Removed redundant info
Browse files Browse the repository at this point in the history
  • Loading branch information
Developer committed Feb 16, 2020
1 parent f240d38 commit b757ed2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 48,16 @@ func main() {
fmt.Println(" -pid Enable PID namespace")
fmt.Println(" -uid Enable User namespace")
}
flag.StringVar(&opt.mnt, "mnt", "", "Enable Mount namespace")
flag.BoolVar(&opt.uts, "uts", false, "Enable UTS namespace")
flag.StringVar(&opt.hst, "hst", "", "Set Hostname [-uts option required]")
flag.BoolVar(&opt.ipc, "ipc", false, "Enable IPC namespace")
flag.BoolVar(&opt.net, "net", false, "Enable Network namespace")
flag.BoolVar(&opt.pid, "pid", false, "Enable Process ID namespace")
flag.BoolVar(&opt.uid, "uid", false, "Enable User ID namespace")
flag.BoolVar(&opt.run, "run", false, "Start container")
flag.BoolVar(&opt.ns, "ns", false, "Start container namespace")
// flag.StringVar(&opt.cmd, "c", "/bin/sh", "[TODO] Execute command")
flag.StringVar(&opt.mnt, "mnt", "", "")
flag.BoolVar(&opt.uts, "uts", false, "")
flag.StringVar(&opt.hst, "hst", "", "")
flag.BoolVar(&opt.ipc, "ipc", false, "")
flag.BoolVar(&opt.net, "net", false, "")
flag.BoolVar(&opt.pid, "pid", false, "")
flag.BoolVar(&opt.uid, "uid", false, "")
flag.BoolVar(&opt.run, "run", false, "")
flag.BoolVar(&opt.ns, "ns", false, "")
// flag.StringVar(&opt.cmd, "c", "/bin/sh", "")
flag.Parse()

flag_code := gen_cloneflags(*opt)
Expand Down

0 comments on commit b757ed2

Please sign in to comment.