TUN-3395: Improve help for list command
This commit is contained in:
parent
c52e0dc8ef
commit
bfae12008d
|
@ -37,18 +37,19 @@ var (
|
||||||
listNameFlag = &cli.StringFlag{
|
listNameFlag = &cli.StringFlag{
|
||||||
Name: "name",
|
Name: "name",
|
||||||
Aliases: []string{"n"},
|
Aliases: []string{"n"},
|
||||||
Usage: "List tunnels with the given name",
|
Usage: "List tunnels with the given `NAME`",
|
||||||
}
|
}
|
||||||
listExistedAtFlag = &cli.TimestampFlag{
|
listExistedAtFlag = &cli.TimestampFlag{
|
||||||
Name: "when",
|
Name: "when",
|
||||||
Aliases: []string{"w"},
|
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,
|
Layout: tunnelstore.TimeLayout,
|
||||||
|
DefaultText: fmt.Sprintf("current time, %s", time.Now().Format(tunnelstore.TimeLayout)),
|
||||||
}
|
}
|
||||||
listIDFlag = &cli.StringFlag{
|
listIDFlag = &cli.StringFlag{
|
||||||
Name: "id",
|
Name: "id",
|
||||||
Aliases: []string{"i"},
|
Aliases: []string{"i"},
|
||||||
Usage: "List tunnel by ID",
|
Usage: "List tunnel by `ID`",
|
||||||
}
|
}
|
||||||
showRecentlyDisconnected = &cli.BoolFlag{
|
showRecentlyDisconnected = &cli.BoolFlag{
|
||||||
Name: "show-recently-disconnected",
|
Name: "show-recently-disconnected",
|
||||||
|
|
Loading…
Reference in New Issue