From 3294e41a87434d07b4c9c02e780c330ec59b47f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20G=C3=BCntner?= Date: Sat, 16 Dec 2023 16:36:13 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8:=20simplify=20getopt=20options?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cannelloni.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cannelloni.cpp b/cannelloni.cpp index 52d25a2..37484ee 100644 --- a/cannelloni.cpp +++ b/cannelloni.cpp @@ -186,10 +186,11 @@ int main(int argc, char **argv) { struct debugOptions_t debugOptions = { /* can */ 0, /* udp */ 0, /* buffer */ 0, /* timer */ 0 }; + const std::string argument_options = "C:l:L:r:R:I:t:T:d:m:P:hsp46f" #ifdef SCTP_SUPPORT - const std::string argument_options = "C:S:l:L:r:R:I:t:T:d:m:P:hsp46f"; + "S:"; #else - const std::string argument_options = "C:Sl:L:r:R:I:t:T:d:m:P:hsp46f"; + ; #endif while ((opt = getopt(argc, argv, argument_options.c_str())) != -1) {