Skip to content

Commit 6b68854

Browse files
authored
Merge pull request #1458 from saschagrunert/cancel-timeout
`crictl run`: Rename `--timeout`/`-t` to `--cancel-timeout`/`-T`
2 parents fc92a8d + 33976da commit 6b68854

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/crictl/container.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ var runPullFlags = []cli.Flag{
157157
Usage: "Runtime handler to use. Available options are defined by the container runtime.",
158158
},
159159
&cli.DurationFlag{
160-
Name: "timeout",
161-
Aliases: []string{"t"},
160+
Name: "cancel-timeout",
161+
Aliases: []string{"T"},
162162
Usage: "Seconds to wait for a container create request before cancelling the request",
163163
},
164164
&cli.DurationFlag{
@@ -638,7 +638,7 @@ var runContainerCommand = &cli.Command{
638638
username: c.String("username"),
639639
timeout: c.Duration("pull-timeout"),
640640
},
641-
timeout: c.Duration("timeout"),
641+
timeout: c.Duration("cancel-timeout"),
642642
}
643643

644644
runtimeClient, err := getRuntimeService(c, opts.timeout)

0 commit comments

Comments
 (0)