diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bitmask-vpn/main.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cmd/bitmask-vpn/main.go b/cmd/bitmask-vpn/main.go index a9b2389..ad85b0e 100644 --- a/cmd/bitmask-vpn/main.go +++ b/cmd/bitmask-vpn/main.go @@ -49,13 +49,20 @@ func main() { conf := systray.ParseConfig() - flag.BoolVar(&conf.SelectGateway, "select-gateway", false, "Enable gateway selection") + selectGateway := flag.Bool("select-gateway", false, "Enable gateway selection") + disableAutostart := flag.Bool("disable-autostart", false, "Disable the autostart for the next run") versionFlag := flag.Bool("version", false, "Version of the bitmask-systray") flag.Parse() if *versionFlag { fmt.Println(version) os.Exit(0) } + if *selectGateway { + conf.SelectGateway = *selectGateway + } + if *disableAutostart { + conf.DisableAustostart = *disableAutostart + } conf.Version = version conf.Printer = initPrinter() |