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) }