cmd/tailscale/cli: fix "subcommand required" errors when typod

Fixes #11672

Signed-off-by: Paul Scott <paul@tailscale.com>
This commit is contained in:
Paul Scott
2024-04-16 15:18:57 +01:00
committed by Paul Scott
parent 3ff3445e9d
commit d07ede461a
8 changed files with 67 additions and 27 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ func TestShortUsage(t *testing.T) {
}
walkCommands(newRootCmd(), func(w cmdWalk) bool {
c, parents := w.cmd, w.parents
c, parents := w.Command, w.parents
// Words that we expect to be in the usage.
words := make([]string, len(parents)+1)