mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Refactor utils/flags.go, fixes #11892
Signed-off-by: Antonio Murdaca <me@runcom.ninja>
This commit is contained in:
parent
61069d8b69
commit
5670c6c695
41 changed files with 75 additions and 112 deletions
|
|
@ -4,7 +4,6 @@ import (
|
|||
"fmt"
|
||||
|
||||
flag "github.com/docker/docker/pkg/mflag"
|
||||
"github.com/docker/docker/utils"
|
||||
)
|
||||
|
||||
// CmdKill kills one or more running container using SIGKILL or a specified signal.
|
||||
|
|
@ -15,7 +14,7 @@ func (cli *DockerCli) CmdKill(args ...string) error {
|
|||
signal := cmd.String([]string{"s", "-signal"}, "KILL", "Signal to send to the container")
|
||||
cmd.Require(flag.Min, 1)
|
||||
|
||||
utils.ParseFlags(cmd, args, true)
|
||||
cmd.ParseFlags(args, true)
|
||||
|
||||
var encounteredError error
|
||||
for _, name := range cmd.Args() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue