From bfae12008d52b6131b6ffb95d7f7040ed8e530d6 Mon Sep 17 00:00:00 2001 From: Igor Postelnik Date: Tue, 15 Sep 2020 08:36:36 -0500 Subject: [PATCH] TUN-3395: Improve help for list command --- cmd/cloudflared/tunnel/subcommands.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/cloudflared/tunnel/subcommands.go b/cmd/cloudflared/tunnel/subcommands.go index 728b5e84..38da02d5 100644 --- a/cmd/cloudflared/tunnel/subcommands.go +++ b/cmd/cloudflared/tunnel/subcommands.go @@ -37,18 +37,19 @@ var ( listNameFlag = &cli.StringFlag{ Name: "name", Aliases: []string{"n"}, - Usage: "List tunnels with the given name", + Usage: "List tunnels with the given `NAME`", } listExistedAtFlag = &cli.TimestampFlag{ Name: "when", Aliases: []string{"w"}, - Usage: fmt.Sprintf("List tunnels that are active at the given time, expect format in RFC3339 (%s)", time.Now().Format(tunnelstore.TimeLayout)), + Usage: "List tunnels that are active at the given `TIME` in RFC3339 format", Layout: tunnelstore.TimeLayout, + DefaultText: fmt.Sprintf("current time, %s", time.Now().Format(tunnelstore.TimeLayout)), } listIDFlag = &cli.StringFlag{ Name: "id", Aliases: []string{"i"}, - Usage: "List tunnel by ID", + Usage: "List tunnel by `ID`", } showRecentlyDisconnected = &cli.BoolFlag{ Name: "show-recently-disconnected",