diff --git a/main.go b/main.go index 4f6ec43..f9b961b 100644 --- a/main.go +++ b/main.go @@ -14,7 +14,7 @@ var Clients map[string]*gitea.Client func main() { parser := argparse.NewParser("gitivity", "Command line tool to get Gitea statistics") - Times := parser.NewCommand("times", "Get a user's tracked times.") + Times := parser.NewCommand("times", "Get a user's tracked times.") config_path := parser.String("c", "config", &argparse.Options{Required: false, Help: "Configuration file", Default: "./config.lua"}) server_option := parser.String("s", "server", &argparse.Options{Required: false, Help: "Specific server to use"}) @@ -48,8 +48,8 @@ func main() { println("No servers configured / specified") os.Exit(0) } - + if Times.Happened() { - times() - } + times() + } }