diff --git a/cmd/headscale/cli/dump_config.go b/cmd/headscale/cli/dump_config.go index 697ca8c9..18b702a1 100644 --- a/cmd/headscale/cli/dump_config.go +++ b/cmd/headscale/cli/dump_config.go @@ -15,9 +15,6 @@ var dumpConfigCmd = &cobra.Command{ Use: "dumpConfig", Short: "dump current config to /etc/headscale/config.dump.yaml, integration test only", Hidden: true, - Args: func(cmd *cobra.Command, args []string) error { - return nil - }, RunE: func(cmd *cobra.Command, args []string) error { err := viper.WriteConfigAs("/etc/headscale/config.dump.yaml") if err != nil { diff --git a/cmd/headscale/cli/serve.go b/cmd/headscale/cli/serve.go index a882e343..af8065e9 100644 --- a/cmd/headscale/cli/serve.go +++ b/cmd/headscale/cli/serve.go @@ -16,9 +16,6 @@ func init() { var serveCmd = &cobra.Command{ Use: "serve", Short: "Launches the headscale server", - Args: func(cmd *cobra.Command, args []string) error { - return nil - }, RunE: func(cmd *cobra.Command, args []string) error { app, err := newHeadscaleServerWithConfig() if err != nil {