Adjustments following kind discussion with LunarJetman on IRC
This commit is contained in:
21
cmd/ordoor/main.go
Normal file
21
cmd/ordoor/main.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"code.ur.gs/lupine/ordoor/internal/ordoor"
|
||||
)
|
||||
|
||||
func main() {
|
||||
configFile := "config.toml"
|
||||
if len(os.Args) == 2 {
|
||||
configFile = os.Args[1]
|
||||
}
|
||||
|
||||
if err := ordoor.Run(configFile); err != nil {
|
||||
log.Fatalf(err.Error())
|
||||
}
|
||||
|
||||
os.Exit(0)
|
||||
}
|
Reference in New Issue
Block a user