Skip to content

Commit

Permalink
🎨: simplify getopt options
Browse files Browse the repository at this point in the history
  • Loading branch information
mguentner committed Dec 16, 2023
1 parent 9cf0ea2 commit 3294e41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cannelloni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3294e41

Please sign in to comment.