From 9831ef469dce43269f3e69393c6f4ee601129c23 Mon Sep 17 00:00:00 2001 From: Max Lambrecht Date: Tue, 6 Jun 2023 15:27:01 -0500 Subject: [PATCH] Fix issue with server socket_path (#201) Signed-off-by: Max Lambrecht --- cmd/server/cli/run.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/server/cli/run.go b/cmd/server/cli/run.go index 9b7d05f3..83b75433 100644 --- a/cmd/server/cli/run.go +++ b/cmd/server/cli/run.go @@ -89,5 +89,8 @@ func init() { runCmd := NewRunCmd() runCmd.Flags().StringP(cli.ConfigFlagName, "c", defaultConfigPath, "Path to the Galadriel Server config file") + // Override the socket path flag in the run command to remove the default value. This flag takes precedence over the config file when set. + runCmd.PersistentFlags().StringP(cli.SocketPathFlagName, "", "", "Specify the path to the Galadriel Server API socket") + RootCmd.AddCommand(runCmd) }