summaryrefslogtreecommitdiff
path: root/cmd/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/cli')
-rw-r--r--cmd/cli/main.go13
1 files changed, 6 insertions, 7 deletions
diff --git a/cmd/cli/main.go b/cmd/cli/main.go
index b1bcaa9..ab0b408 100644
--- a/cmd/cli/main.go
+++ b/cmd/cli/main.go
@@ -162,15 +162,14 @@ func main() {
customURLString := *customURLArg
urlString := *urlArg
secureInternetString := *secureInternet
- if customURLString != "" {
+ switch {
+ case customURLString != "":
printConfig(customURLString, ServerTypeCustom)
- return
- } else if urlString != "" {
+ case urlString != "":
printConfig(urlString, ServerTypeInstituteAccess)
- return
- } else if secureInternetString != "" {
+ case secureInternetString != "":
printConfig(secureInternetString, ServerTypeSecureInternet)
- return
+ default:
+ flag.PrintDefaults()
}
- flag.PrintDefaults()
}