mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-26 05:49:25 +01:00
Merge pull request #23 from edmund-huber/mandatory_argument_handling
fix mandatory argument handling
This commit is contained in:
commit
b359d8c097
@ -64,7 +64,7 @@ func main() {
|
||||
irc.UpgradeDB(config.Server.Database)
|
||||
log.Println("database upgraded: ", config.Server.Database)
|
||||
|
||||
default:
|
||||
case "run":
|
||||
runFlags.Parse(flag.Args()[1:])
|
||||
config := loadConfig(conf)
|
||||
irc.Log.SetLevel(config.Server.Log)
|
||||
@ -72,5 +72,8 @@ func main() {
|
||||
log.Println(irc.SEM_VER, "running")
|
||||
defer log.Println(irc.SEM_VER, "exiting")
|
||||
server.Run()
|
||||
|
||||
default:
|
||||
usage()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user