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})