X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4f4f6f5fe9367d5cd6c57070fd8a223efc87cb21..918e16de43e993894dcaffbe0cafa0fc1d2f16b3:/services/arv-git-httpd/main.go diff --git a/services/arv-git-httpd/main.go b/services/arv-git-httpd/main.go index 75645ff472..5b6ae61b51 100644 --- a/services/arv-git-httpd/main.go +++ b/services/arv-git-httpd/main.go @@ -44,6 +44,7 @@ func main() { "Value for GITOLITE_HTTP_HOME environment variable. If not empty, GL_BYPASS_ACCESS_CHECKS=1 will also be set."+deprecated) cfgPath := flag.String("config", defaultCfgPath, "Configuration file `path`.") + dumpConfig := flag.Bool("dump-config", false, "write current configuration to stdout and exit (useful for migrating from command line flags to config file)") flag.Usage = usage flag.Parse() @@ -63,6 +64,10 @@ func main() { } } + if *dumpConfig { + log.Fatal(config.DumpAndExit(theConfig)) + } + srv := &server{} if err := srv.Start(); err != nil { log.Fatal(err)