Skip to content

Commit bfae120

Browse files
committed
TUN-3395: Improve help for list command
1 parent c52e0dc commit bfae120

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cmd/cloudflared/tunnel/subcommands.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,19 @@ var (
3737
listNameFlag = &cli.StringFlag{
3838
Name: "name",
3939
Aliases: []string{"n"},
40-
Usage: "List tunnels with the given name",
40+
Usage: "List tunnels with the given `NAME`",
4141
}
4242
listExistedAtFlag = &cli.TimestampFlag{
4343
Name: "when",
4444
Aliases: []string{"w"},
45-
Usage: fmt.Sprintf("List tunnels that are active at the given time, expect format in RFC3339 (%s)", time.Now().Format(tunnelstore.TimeLayout)),
45+
Usage: "List tunnels that are active at the given `TIME` in RFC3339 format",
4646
Layout: tunnelstore.TimeLayout,
47+
DefaultText: fmt.Sprintf("current time, %s", time.Now().Format(tunnelstore.TimeLayout)),
4748
}
4849
listIDFlag = &cli.StringFlag{
4950
Name: "id",
5051
Aliases: []string{"i"},
51-
Usage: "List tunnel by ID",
52+
Usage: "List tunnel by `ID`",
5253
}
5354
showRecentlyDisconnected = &cli.BoolFlag{
5455
Name: "show-recently-disconnected",

0 commit comments

Comments
 (0)