8567: Adjust job container resolve test now that images are filtered based on
[arvados.git] / services / arv-git-httpd / main.go
index 75645ff47215c2b5f7f666057006ea2510f99811..5b6ae61b51e2423db9ebb0a94c861a89d417c7f2 100644 (file)
@@ -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)