You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fmt.Printf("wireguard-go v%s\n\nUserspace WireGuard daemon for %s-%s.\nInformation available at https://www.wireguard.com.\nCopyright (C) Jason A. Donenfeld <[email protected]>.\n", Version, runtime.GOOS, runtime.GOARCH)
63
-
return
58
+
opts:=flags.NewOptions()
59
+
iferr:=flags.Parse(opts); err!=nil {
60
+
fmt.Fprintln(os.Stderr, err)
61
+
os.Exit(ExitSetupFailed)
64
62
}
65
63
66
-
warning()
67
-
68
-
varforegroundbool
69
-
varinterfaceNamestring
70
-
iflen(os.Args) <2||len(os.Args) >3 {
71
-
printUsage()
64
+
ifopts.ShowVersion {
65
+
fmt.Printf("wireguard-go v%s\n\nUserspace WireGuard daemon for %s-%s.\nInformation available at https://www.wireguard.com.\nCopyright (C) Jason A. Donenfeld <[email protected]>.\n", Version, runtime.GOOS, runtime.GOARCH)
0 commit comments