summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.go b/main.go
index 617bdf1..56198bd 100644
--- a/main.go
+++ b/main.go
@@ -40,6 +40,10 @@ func main() {
// locking the main thread into an OS thread fixes the problem
runtime.LockOSThread()
+ conf := parseConfig()
+ initPrinter()
+
+ flag.BoolVar(&conf.SelectGateway, "select-gateway", false, "Enable gateway selection")
versionFlag := flag.Bool("version", false, "Version of the bitmask-systray")
flag.Parse()
if *versionFlag {
@@ -57,9 +61,6 @@ func main() {
}
defer releasePID()
- conf := parseConfig()
- initPrinter()
-
notify := newNotificator(conf)
b, err := initBitmask()