mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Removed cobra option to ignore parse errors of flags since we are using MarkDeprecated
This commit is contained in:
parent
11e6d2d9a5
commit
21bc76ddb2
1 changed files with 4 additions and 5 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue