summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/dolmetschctl.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/server/dolmetschctl.c b/server/dolmetschctl.c
index fd63e99..5bb9965 100644
--- a/server/dolmetschctl.c
+++ b/server/dolmetschctl.c
@@ -156,13 +156,7 @@ int main(int argc, char* argv[])
osc_port = optarg;
break;
case '?':
- if (optopt == 'x')
- error(0, 0, "Option -%c requires an argument.\n", optopt);
- else if (optopt == 'd')
- error(0, 0, "Option -%c requires an argument.\n", optopt);
- else if (optopt == 'm')
- error(0, 0, "Option -%c requires an argument.\n", optopt);
- else if (optopt == 'o')
+ if (optopt == 'x' || optopt == 'd' || optopt == 'm' || optopt == 'o')
error(0, 0, "Option -%c requires an argument.\n", optopt);
else if (isprint (optopt))
error(0, 0, "Unknown option `-%c'.\n", optopt);