TUN-3345: tunnel run accepts name of tunnel as argument

This commit is contained in:
cthuang 2020-09-04 15:18:14 +01:00 committed by Chung Ting Huang
parent cd5bdb837e
commit 5fb938d6d6
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ func runCommand(c *cli.Context) error {
if c.NArg() != 1 {
return cliutil.UsageError(`"cloudflared tunnel run" requires exactly 1 argument, the ID or name of the tunnel to run.`)
}
tunnelID, err := uuid.Parse(c.Args().First())
tunnelID, err := sc.findID(c.Args().First())
if err != nil {
return errors.Wrap(err, "error parsing tunnel ID")
}