Skip to content

Commit

Permalink
Remove -t timeout shorthand from tkn task start
Browse files Browse the repository at this point in the history
fixes #743
  • Loading branch information
waveywaves authored and tekton-robot committed Mar 2, 2020
1 parent e41df95 commit a25d288
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/cmd/tkn_task_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ like cat,foo,bar
--prefix-name string specify a prefix for the taskrun name (must be lowercase alphanumeric characters)
-s, --serviceaccount string pass the serviceaccount name
--showlog show logs right after starting the task
-t, --timeout int timeout for taskrun in seconds (default 3600)
--timeout int timeout for taskrun in seconds (default 3600)
--use-taskrun string specify a taskrun name to use its values to re-run the taskrun
```

Expand Down
2 changes: 1 addition & 1 deletion docs/man/man1/tkn-task-start.1
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Start tasks
show logs right after starting the task

.PP
\fB\-t\fP, \fB\-\-timeout\fP=3600
\fB\-\-timeout\fP=3600
timeout for taskrun in seconds

.PP
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/task/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ like cat,foo,bar
c.Flags().StringSliceVarP(&opt.Labels, "labels", "l", []string{}, "pass labels as label=value.")
c.Flags().BoolVarP(&opt.ShowLog, "showlog", "", false, "show logs right after starting the task")
c.Flags().StringVarP(&opt.Filename, "filename", "f", "", "local or remote file name containing a task definition")
c.Flags().Int64VarP(&opt.TimeOut, "timeout", "t", 3600, "timeout for taskrun in seconds")
c.Flags().Int64VarP(&opt.TimeOut, "timeout", "", 3600, "timeout for taskrun in seconds")
c.Flags().BoolVarP(&opt.DryRun, "dry-run", "", false, "preview taskrun without running it")
c.Flags().StringVarP(&opt.Output, "output", "", "", "format of taskrun dry-run (yaml or json)")
c.Flags().StringVarP(&opt.PrefixName, "prefix-name", "", "", "specify a prefix for the taskrun name (must be lowercase alphanumeric characters)")
Expand Down

0 comments on commit a25d288

Please sign in to comment.