diff options
| author | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2025-09-02 14:52:14 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2025-09-02 14:52:14 +0200 |
| commit | 53b40a5353df751d10c8480749b2c1929895c3e6 (patch) | |
| tree | ceed1a70f202c2e04ba63b6498caa86010b05708 /cmd/eduvpn-cli/main.go | |
| parent | 308c656f05d0609eeb02891dbe3c30f8b0438765 (diff) | |
CLI: Get rid of debug argument
Diffstat (limited to 'cmd/eduvpn-cli/main.go')
| -rw-r--r-- | cmd/eduvpn-cli/main.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cmd/eduvpn-cli/main.go b/cmd/eduvpn-cli/main.go index 5a217c9..d0457b5 100644 --- a/cmd/eduvpn-cli/main.go +++ b/cmd/eduvpn-cli/main.go @@ -136,7 +136,7 @@ func getConfig(state *client.Client, url string, srvType srvtypes.Type, cc strin } // Get a config for a single server, Institute Access or Secure Internet. -func printConfig(url string, cc string, srvType srvtypes.Type, prof string, debug bool) error { +func printConfig(url string, cc string, srvType srvtypes.Type, prof string) error { var c *client.Client var err error var dir string @@ -188,18 +188,17 @@ func main() { sec := flag.String("get-secure", "", "Gets secure internet servers") cc := flag.String("country-code", "", "The country code to use in case of a secure internet server") prof := flag.String("profile", "", "The profile ID to choose") - debug := flag.Bool("debug", false, "Whether or not to enable debugging") flag.Parse() // Connect to a VPN by getting an Institute Access config var err error switch { case *cu != "": - err = printConfig(*cu, "", srvtypes.TypeCustom, *prof, *debug) + err = printConfig(*cu, "", srvtypes.TypeCustom, *prof) case *u != "": - err = printConfig(*u, "", srvtypes.TypeInstituteAccess, *prof, *debug) + err = printConfig(*u, "", srvtypes.TypeInstituteAccess, *prof) case *sec != "": - err = printConfig(*sec, *cc, srvtypes.TypeSecureInternet, *prof, *debug) + err = printConfig(*sec, *cc, srvtypes.TypeSecureInternet, *prof) default: flag.PrintDefaults() } |
