Skip to content

Commit 8c4807f

Browse files
authored
Merge pull request #1282 from giuseppe/kill-1-arg
kill: make second argument optional
2 parents a9610f2 + b760919 commit 8c4807f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kill.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ var signalMap = map[string]syscall.Signal{
5252
var killCommand = cli.Command{
5353
Name: "kill",
5454
Usage: "kill sends the specified signal (default: SIGTERM) to the container's init process",
55-
ArgsUsage: `<container-id> <signal>
55+
ArgsUsage: `<container-id> [signal]
5656
5757
Where "<container-id>" is the name for the instance of the container and
58-
"<signal>" is the signal to be sent to the init process.
58+
"[signal]" is the signal to be sent to the init process.
5959
6060
EXAMPLE:
6161
For example, if the container id is "ubuntu01" the following will send a "KILL"
@@ -69,7 +69,7 @@ signal to the init process of the "ubuntu01" container:
6969
},
7070
},
7171
Action: func(context *cli.Context) error {
72-
if err := checkArgs(context, 2, exactArgs); err != nil {
72+
if err := checkArgs(context, 1, minArgs); err != nil {
7373
return err
7474
}
7575
container, err := getContainer(context)

0 commit comments

Comments
 (0)