Do not attempt to use command --args as cli flags

i.e. kpod run fedora python --version

Signed-off-by: baude <bbaude@redhat.com>

Closes: #33
Approved by: rhatdan
This commit is contained in:
baude 2017-11-07 13:41:25 -06:00 committed by Atomic Bot
parent 84e3bdceda
commit b8dca1874d
2 changed files with 14 additions and 12 deletions

View File

@ -129,6 +129,7 @@ var createCommand = cli.Command{
Flags: createFlags, Flags: createFlags,
Action: createCmd, Action: createCmd,
ArgsUsage: "IMAGE [COMMAND [ARG...]]", ArgsUsage: "IMAGE [COMMAND [ARG...]]",
SkipArgReorder: true,
} }
func createCmd(c *cli.Context) error { func createCmd(c *cli.Context) error {

View File

@ -18,6 +18,7 @@ var runCommand = cli.Command{
Flags: createFlags, Flags: createFlags,
Action: runCmd, Action: runCmd,
ArgsUsage: "IMAGE [COMMAND [ARG...]]", ArgsUsage: "IMAGE [COMMAND [ARG...]]",
SkipArgReorder: true,
} }
func runCmd(c *cli.Context) error { func runCmd(c *cli.Context) error {