summaryrefslogtreecommitdiff
path: root/cmd/kpod/create.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2017-11-07 13:41:25 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2017-11-08 21:49:15 +0000
commitb8dca1874dfec01b1782f1308f26b58f315424cd (patch)
tree43753b4ab87bb9df942cf4cd2663f6c5ed84a0f1 /cmd/kpod/create.go
parent84e3bdceda8d4683c823f16dffaee57e2d861cdc (diff)
downloadpodman-b8dca1874dfec01b1782f1308f26b58f315424cd.tar.gz
podman-b8dca1874dfec01b1782f1308f26b58f315424cd.tar.bz2
podman-b8dca1874dfec01b1782f1308f26b58f315424cd.zip
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
Diffstat (limited to 'cmd/kpod/create.go')
-rw-r--r--cmd/kpod/create.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/cmd/kpod/create.go b/cmd/kpod/create.go
index f2b8898ca..55f02e8e6 100644
--- a/cmd/kpod/create.go
+++ b/cmd/kpod/create.go
@@ -123,12 +123,13 @@ var createDescription = "Creates a new container from the given image or" +
" will be created with the initial state 'created'."
var createCommand = cli.Command{
- Name: "create",
- Usage: "create but do not start a container",
- Description: createDescription,
- Flags: createFlags,
- Action: createCmd,
- ArgsUsage: "IMAGE [COMMAND [ARG...]]",
+ Name: "create",
+ Usage: "create but do not start a container",
+ Description: createDescription,
+ Flags: createFlags,
+ Action: createCmd,
+ ArgsUsage: "IMAGE [COMMAND [ARG...]]",
+ SkipArgReorder: true,
}
func createCmd(c *cli.Context) error {