Skip to content
This repository was archived by the owner on May 28, 2022. It is now read-only.

Commit f9062ab

Browse files
committed
TUN-4141: Better error messages for tunnel info subcommand.
1 parent d14f3b3 commit f9062ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/cloudflared/tunnel/subcommands.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ func tunnelInfo(c *cli.Context) error {
368368
warningChecker := updater.StartWarningCheck(c)
369369
defer warningChecker.LogWarningIfAny(sc.log)
370370

371-
if c.NArg() > 1 {
372-
return cliutil.UsageError(`"cloudflared tunnel info" accepts only one argument, the ID or name of the tunnel to run.`)
371+
if c.NArg() != 1 {
372+
return cliutil.UsageError(`"cloudflared tunnel info" accepts exactly one argument, the ID or name of the tunnel to get info about.`)
373373
}
374374
tunnelID, err := sc.findID(c.Args().First())
375375
if err != nil {

0 commit comments

Comments
 (0)