From afe0bfc5ac54651ff46069678095b8d5528afc3b Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sat, 2 Aug 2014 14:31:02 -0700 Subject: [PATCH] Rename flag for consistency. Change-Id: Iaa2d0fc4bf02a27a30eb85aee9b8f757440a35c6 --- server/camlistored/camlistored.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/camlistored/camlistored.go b/server/camlistored/camlistored.go index 62aa07d82..2aa4c216c 100644 --- a/server/camlistored/camlistored.go +++ b/server/camlistored/camlistored.go @@ -81,7 +81,7 @@ var ( flagVersion = flag.Bool("version", false, "show version") flagConfigFile = flag.String("configfile", "", "Config file to use, relative to the Camlistore configuration directory root. If blank, the default is used or auto-generated.") - listenFlag = flag.String("listen", "", "host:port to listen on, or :0 to auto-select. If blank, the value in the config will be used instead.") + flagListen = flag.String("listen", "", "host:port to listen on, or :0 to auto-select. If blank, the value in the config will be used instead.") flagOpenBrowser = flag.Bool("openbrowser", true, "Launches the UI on startup") flagReindex = flag.Bool("reindex", false, "Reindex all blobs on startup") flagPollParent bool @@ -311,7 +311,7 @@ func handleSignals(shutdownc <-chan io.Closer) { // and base URL from the command-line flags and provided config. func listenAndBaseURL(config *serverinit.Config) (listen, baseURL string) { baseURL = config.OptionalString("baseURL", "") - listen = *listenFlag + listen = *flagListen listenConfig := config.OptionalString("listen", "") // command-line takes priority over config if listen == "" {