diff --git a/exec.go b/exec.go index 544d3de4..d2512301 100644 --- a/exec.go +++ b/exec.go @@ -18,10 +18,11 @@ import ( var execCommand = cli.Command{ Name: "exec", Usage: "execute new process inside the container", - ArgsUsage: ` [command options] + ArgsUsage: ` [command options] || -p process.json Where "" is the name for the instance of the container and -"" is the command to be executed in the container. +"" is the command to be executed in the container. +"" can't be empty unless a "-p" flag provided. EXAMPLE: For example, if the container is configured to run the linux ps command the @@ -86,7 +87,7 @@ following will output a list of processes running in the container: }, }, Action: func(context *cli.Context) error { - if err := checkArgs(context, 2, minArgs); err != nil { + if err := checkArgs(context, 1, minArgs); err != nil { return err } if os.Geteuid() != 0 {