diff --git a/dongle.c b/dongle.c
index d5fa00da063b5f69acd073fadd699271b02253e8..4bcc7249d96e5b41778fe29194a16cc02fd7978c 100644
--- a/dongle.c
+++ b/dongle.c
@@ -53,16 +53,22 @@ int parse_args(int argc, char **argv)
 		case 'd':
 			debug = atoi(optarg);
 			if (debug > 1 || debug < 0) {
-				printf("%s: option '-%c' is invalid.\n", argv[0], optopt); //cant exactly do debug print in here...
+				printf("%s: option '-%c' is invalid.\n", argv[0], optopt);
 				goto fail;
 			}
 			goto done;
+			break;
 		case ':':
 			fprintf(stderr, "%s: option '-%c' requires an argument\n", argv[0], optopt);
 			goto fail;
+			break;
 		case '?':
 			fprintf(stderr, "%s: option '-%c' is invalid: ignored\n", argv[0], optopt);
 			goto fail;
+			break;
+		default:
+			goto fail;
+			break;
 		}
 	}