   "tell application \"System Events\" to tell process \"Cisco AnyConnect Secure Mobility Client\"\n" +
   "if button \"Disconnect\" of window 1 exists then\n" +
     "click button \"Disconnect\" of window 1\n" +
-    "return\n" +
+    "return 1\n" +
   "end if\n" +
   "tell combo box 1 of window 1 to set value to \"%@\"\n" +
   "click button \"Connect\" of window 1\n" +

  "end repeat\n" +
  "keystroke \"%@\"\n" +
  "click button \"OK\" of window 1\n" +
"end tell\n"

func printErrorAndExit(error: ErrorType) {

  print("Settings cleared! 🖖")
}
else if arguments.hasOption(Option.network) {
  eval(connect(defaults.password, toNetwork: arguments.argumentForOption(Option.network)))
}
else if arguments.count > 1 {
  let option = arguments[1]
  printErrorAndExit(QCError.UnknownOption(option))
}
else {
  eval(connect(defaults.password, toNetwork: defaults.network))
}

exit(EXIT_SUCCESS)
