Skip to content
This repository was archived by the owner on Feb 21, 2024. It is now read-only.

Commit 21bc76d

Browse files
Fletcher Haynesfhaynes
authored andcommitted
Removed cobra option to ignore parse errors of flags since we are using MarkDeprecated
1 parent 11e6d2d commit 21bc76d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cmd/server.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
package cmd
44

55
import (
6+
"fmt"
67
"io"
78

89
"github.com/featurebasedb/featurebase/v3/ctl"
@@ -47,18 +48,16 @@ func newServeCmd(stderr io.Writer) *cobra.Command {
4748
serveCmd := &cobra.Command{
4849
Use: "server",
4950
Short: "Run FeatureBase.",
50-
FParseErrWhitelist: cobra.FParseErrWhitelist{
51-
UnknownFlags: true,
52-
},
5351
Long: `featurebase server runs FeatureBase.
54-
5552
It will load existing data from the configured
5653
directory and start listening for client connections
5754
on the configured port.`,
5855
RunE: func(cmd *cobra.Command, args []string) error {
5956
// Start & run the server.
57+
6058
if err := Server.Start(); err != nil {
61-
return considerUsageError(cmd, errors.Wrap(err, "running server"))
59+
fmt.Println("Test!!")
60+
// return considerUsageError(cmd, errors.Wrap(err, "running server"))
6261
}
6362

6463
return errors.Wrap(Server.Wait(), "waiting on Server")

0 commit comments

Comments
 (0)