From 29ba29478b5a2946f767c64de37a3ed5deeb5f0b Mon Sep 17 00:00:00 2001 From: Florian Preinstorfer Date: Sun, 2 Mar 2025 11:14:09 +0100 Subject: [PATCH] Add usage example to routes flag --- cmd/headscale/cli/nodes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/headscale/cli/nodes.go b/cmd/headscale/cli/nodes.go index a0ae4f32..2766efb9 100644 --- a/cmd/headscale/cli/nodes.go +++ b/cmd/headscale/cli/nodes.go @@ -98,7 +98,7 @@ func init() { approveRoutesCmd.Flags().Uint64P("identifier", "i", 0, "Node identifier (ID)") approveRoutesCmd.MarkFlagRequired("identifier") - approveRoutesCmd.Flags().StringSliceP("routes", "r", []string{}, "List of routes that will be approved") + approveRoutesCmd.Flags().StringSliceP("routes", "r", []string{}, `List of routes that will be approved (comma-separated, e.g. "10.0.0.0/8,192.168.0.0/24" or empty string to remove all approved routes)`) nodeCmd.AddCommand(approveRoutesCmd) nodeCmd.AddCommand(backfillNodeIPsCmd) @@ -839,7 +839,7 @@ var approveRoutesCmd = &cobra.Command{ return } - // Sending tags to node + // Sending routes to node request := &v1.SetApprovedRoutesRequest{ NodeId: identifier, Routes: routes,