diff --git a/cmd/headscale/cli/nodes.go b/cmd/headscale/cli/nodes.go index 4be706b..7500043 100644 --- a/cmd/headscale/cli/nodes.go +++ b/cmd/headscale/cli/nodes.go @@ -11,7 +11,8 @@ import ( "github.com/spf13/cobra" ) -func init () { +func init() { + rootCmd.AddCommand(nodeCmd) nodeCmd.PersistentFlags().StringP("namespace", "n", "", "Namespace") err := nodeCmd.MarkPersistentFlagRequired("namespace") if err != nil {