diff options
author | baude <bbaude@redhat.com> | 2017-12-04 10:43:09 -0600 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-12-04 20:03:16 +0000 |
commit | 3db735c6d1bd3fdcf77f4aeed581ae852d79b951 (patch) | |
tree | daad6c759e45b7d316950be9aa57498fecb7a86a /cmd/kpod/create.go | |
parent | 265efcb9f88a78ee52eb5644d4db86e49788991f (diff) | |
download | podman-3db735c6d1bd3fdcf77f4aeed581ae852d79b951.tar.gz podman-3db735c6d1bd3fdcf77f4aeed581ae852d79b951.tar.bz2 podman-3db735c6d1bd3fdcf77f4aeed581ae852d79b951.zip |
Short options!
Any subcommand that has two or more booleon short options can
now combine those two options. For example:
kpod rmi -af (Remove all images forceably)
Signed-off-by: baude <bbaude@redhat.com>
Closes: #100
Approved by: rhatdan
Diffstat (limited to 'cmd/kpod/create.go')
-rw-r--r-- | cmd/kpod/create.go | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/cmd/kpod/create.go b/cmd/kpod/create.go index 9e810af6e..1b340f96d 100644 --- a/cmd/kpod/create.go +++ b/cmd/kpod/create.go @@ -131,13 +131,14 @@ 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...]]", - SkipArgReorder: true, + Name: "create", + Usage: "create but do not start a container", + Description: createDescription, + Flags: createFlags, + Action: createCmd, + ArgsUsage: "IMAGE [COMMAND [ARG...]]", + SkipArgReorder: true, + UseShortOptionHandling: true, } func createCmd(c *cli.Context) error { |