From 76a4931554db13eea9845f521fbf703e5099c392 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 2 Dec 2017 18:03:27 -0800 Subject: [PATCH] cmd/route-cli: fix build --- cmd/route-cli/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/route-cli/main.go b/cmd/route-cli/main.go index 157268a..5d0becc 100644 --- a/cmd/route-cli/main.go +++ b/cmd/route-cli/main.go @@ -70,7 +70,7 @@ var ( routesCreateDomain = routesCreate.Flag("domain", "domain for the route (if not given one will be generated for you)").String() routesInspect = routes.Command("inspect", "inspect one route") - routesInspectDomain = routesInspect.Flag("domain", "domain to inspect").Required().String() + routesInspectID = routesInspect.Flag("id", "ID of the route to inspect").Required().String() routesList = routes.Command("list", "list all routes owned by you") @@ -224,7 +224,7 @@ retry_netrc: case "route inspect": r, err := rc.Get(context.Background(), &proto.GetRouteRequest{ - Host: *routesCreateDomain, + Id: *routesInspectID, }) if err != nil { ln.FatalErr(ctx, err, ln.Action("get single route"), ln.F{"domain": *routesCreateDomain})