From 33976da338609172f211d834592cb1c1e460a4df Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Thu, 13 Jun 2024 10:10:40 +0200 Subject: [PATCH] `crictl run`: Rename `--timeout`/`-t` to `--cancel-timeout`/`-T` This streamlines the behavior with `crictl create` by changing the `--timeout` to `--cancel-timeout`. The timeout flag from the root command (`crictl -t`) can still be used as fallback. Signed-off-by: Sascha Grunert --- cmd/crictl/container.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/crictl/container.go b/cmd/crictl/container.go index ad08283aa1..8c37d00009 100644 --- a/cmd/crictl/container.go +++ b/cmd/crictl/container.go @@ -157,8 +157,8 @@ var runPullFlags = []cli.Flag{ Usage: "Runtime handler to use. Available options are defined by the container runtime.", }, &cli.DurationFlag{ - Name: "timeout", - Aliases: []string{"t"}, + Name: "cancel-timeout", + Aliases: []string{"T"}, Usage: "Seconds to wait for a container create request before cancelling the request", }, &cli.DurationFlag{ @@ -638,7 +638,7 @@ var runContainerCommand = &cli.Command{ username: c.String("username"), timeout: c.Duration("pull-timeout"), }, - timeout: c.Duration("timeout"), + timeout: c.Duration("cancel-timeout"), } runtimeClient, err := getRuntimeService(c, opts.timeout)