From 21bc76ddb20e60342c145c4346d9f4e77d758d6f Mon Sep 17 00:00:00 2001 From: Fletcher Haynes Date: Wed, 1 Mar 2023 21:36:55 -0800 Subject: [PATCH] Removed cobra option to ignore parse errors of flags since we are using MarkDeprecated --- cmd/server.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cmd/server.go b/cmd/server.go index ec5870f46..6ef16d85b 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -3,6 +3,7 @@ package cmd import ( + "fmt" "io" "github.com/featurebasedb/featurebase/v3/ctl" @@ -47,18 +48,16 @@ func newServeCmd(stderr io.Writer) *cobra.Command { serveCmd := &cobra.Command{ Use: "server", Short: "Run FeatureBase.", - FParseErrWhitelist: cobra.FParseErrWhitelist{ - UnknownFlags: true, - }, Long: `featurebase server runs FeatureBase. - It will load existing data from the configured directory and start listening for client connections on the configured port.`, RunE: func(cmd *cobra.Command, args []string) error { // Start & run the server. + if err := Server.Start(); err != nil { - return considerUsageError(cmd, errors.Wrap(err, "running server")) + fmt.Println("Test!!") + // return considerUsageError(cmd, errors.Wrap(err, "running server")) } return errors.Wrap(Server.Wait(), "waiting on Server")