"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()
}
}
+ if *dumpConfig {
+ log.Fatal(config.DumpAndExit(theConfig))
+ }
+
srv := &server{}
if err := srv.Start(); err != nil {
log.Fatal(err)