refactor: refactor command line flags in main function

- Remove the `t` alias from the `main` function's flags.

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi.Wu
2023-04-15 07:16:23 +08:00
parent b9cdc20c14
commit 30279a3e8d
-1
View File
@@ -64,7 +64,6 @@ func main() {
},
&cli.DurationFlag{
Name: "timeout",
Aliases: []string{"t"},
Usage: "connection timeout",
EnvVars: []string{"PLUGIN_TIMEOUT", "SSH_TIMEOUT", "INPUT_TIMEOUT"},
Value: 30 * time.Second,