TUN-4141: Better error messages for tunnel info subcommand.

This commit is contained in:
Adam Chalmers 2021-03-26 14:45:35 -05:00
parent d14f3b39a7
commit f9062ab473
1 changed files with 2 additions and 2 deletions

View File

@ -368,8 +368,8 @@ func tunnelInfo(c *cli.Context) error {
warningChecker := updater.StartWarningCheck(c)
defer warningChecker.LogWarningIfAny(sc.log)
if c.NArg() > 1 {
return cliutil.UsageError(`"cloudflared tunnel info" accepts only one argument, the ID or name of the tunnel to run.`)
if c.NArg() != 1 {
return cliutil.UsageError(`"cloudflared tunnel info" accepts exactly one argument, the ID or name of the tunnel to get info about.`)
}
tunnelID, err := sc.findID(c.Args().First())
if err != nil {