summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.go b/main.go
index 2cf2ed9..faed9c5 100644
--- a/main.go
+++ b/main.go
@@ -64,6 +64,12 @@ func main() {
}
me.urlbase = strings.Trim(me.urlbase, "/") // track down why trailing '/' makes http POST not work
+ // internally debugging can be triggered here before Init()
+ if argv.Debug != nil {
+ doDebug()
+ okExit("")
+ }
+
// load the ~/.config/forge/ config
me.forge = forgepb.Init()
me.found = new(gitpb.Repos)