From 3db735c6d1bd3fdcf77f4aeed581ae852d79b951 Mon Sep 17 00:00:00 2001 From: baude Date: Mon, 4 Dec 2017 10:43:09 -0600 Subject: 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 Closes: #100 Approved by: rhatdan --- cmd/kpod/run.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'cmd/kpod/run.go') diff --git a/cmd/kpod/run.go b/cmd/kpod/run.go index eb3dee88c..934096c21 100644 --- a/cmd/kpod/run.go +++ b/cmd/kpod/run.go @@ -13,13 +13,14 @@ import ( var runDescription = "Runs a command in a new container from the given image" var runCommand = cli.Command{ - Name: "run", - Usage: "run a command in a new container", - Description: runDescription, - Flags: createFlags, - Action: runCmd, - ArgsUsage: "IMAGE [COMMAND [ARG...]]", - SkipArgReorder: true, + Name: "run", + Usage: "run a command in a new container", + Description: runDescription, + Flags: createFlags, + Action: runCmd, + ArgsUsage: "IMAGE [COMMAND [ARG...]]", + SkipArgReorder: true, + UseShortOptionHandling: true, } func runCmd(c *cli.Context) error { -- cgit v1.2.3-54-g00ecf