cmd/tailscale/cli: document usage more clearly (#10681)

The IP argument is required; only the port is optional.

Updates #10605

Signed-off-by: Chris Palmer <cpalmer@tailscale.com>
This commit is contained in:
Chris Palmer 2024-01-02 17:43:08 -08:00 committed by GitHub
parent 5812093d31
commit 5deeb56b95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@
var whoisCmd = &ffcli.Command{
Name: "whois",
ShortUsage: "whois [--json] [ip|ip:port]",
ShortUsage: "whois [--json] ip[:port]",
ShortHelp: "Show the machine and user associated with a Tailscale IP (v4 or v6)",
LongHelp: strings.TrimSpace(`
'tailscale whois' shows the machine and user associated with a Tailscale IP (v4 or v6).