summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-06-14 11:29:26 +0200
committerRuben Pollan <meskio@sindominio.net>2018-06-20 12:18:17 +0200
commit2439d744ac42e7c77e4848de50dd432f7d9b12bc (patch)
tree43cd32185b96a2353f6bbbea407494d8644d8801 /main.go
parent37413f5eb2b8d4719c959db03874cc9bcc362ddc (diff)
[feat] sort gateways by timezone
And let us select gateways. - Resolves: #42
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()