Skip to content
Snippets Groups Projects
Commit 007e9e6d authored by ale's avatar ale
Browse files

Clarify that the --db parameter is a URI, not a path

parent 940766a6
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ import (
type serverCommand struct {
rpcAddr string
httpAddr string
dbPath string
dbURI string
scriptPath string
tlsCert string
tlsKey string
......@@ -45,7 +45,7 @@ func (c *serverCommand) Usage() string {
func (c *serverCommand) SetFlags(f *flag.FlagSet) {
f.StringVar(&c.rpcAddr, "rpc-addr", ":7170", "`address` of GRPC listener")
f.StringVar(&c.httpAddr, "http-addr", ":7180", "`address` of HTTP debug listener")
f.StringVar(&c.dbPath, "db-path", "/var/lib/iprep/data", "database `path`")
f.StringVar(&c.dbURI, "db", "/var/lib/iprep/data", "database `uri` (sqlite:// or leveldb://)")
f.StringVar(&c.scriptPath, "scoring-script", "/etc/iprep/score.td", "`path` to a custom scoring script")
f.StringVar(&c.tlsCert, "tls-cert", "", "TLS certificate `path` (grpc only)")
......@@ -67,7 +67,7 @@ func (c *serverCommand) Execute(ctx context.Context, f *flag.FlagSet, args ...in
}
func (c *serverCommand) run(ctx context.Context) error {
srv, err := server.New(c.dbPath, c.scriptPath)
srv, err := server.New(c.dbURI, c.scriptPath)
if err != nil {
return err
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment