From ba71b423691166c4a65ee84fa80d5c54af904973 Mon Sep 17 00:00:00 2001 From: Noah Date: Wed, 27 Mar 2024 11:45:37 -0500 Subject: [PATCH] Switch default config file to ./config.lua, not ./config.json (fix #33) --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 2733ff9..03bd44d 100644 --- a/main.go +++ b/main.go @@ -75,7 +75,7 @@ func handler(data map[string]interface{}) { func main() { // Parse arguments parser := argparse.NewParser("lapisdeploy", "Easily deploy Lapis web applications through Gitea webhooks") - config_path := parser.String("c", "config", &argparse.Options{Required: false, Help: "Configuration file", Default: "./config.json"}) + config_path := parser.String("c", "config", &argparse.Options{Required: false, Help: "Configuration file", Default: "./config.lua"}) disable_matrix := parser.Flag("M", "disable-matrix", &argparse.Options{Required: false, Help: "Disable Matrix chat bot", Default: false}) if err := parser.Parse(os.Args); err != nil { // Parse arguments fmt.Print(parser.Usage(err)) // Show usage if there's an error