Hi,

`bjoentegaard` app freezez if invalid parameters has been supplied. 

`getopt` documetation states following

```
     The getopt() function returns the next known option character in optstring.  If getopt() encounters a character not found in optstring or if it detects a
     missing option argument, it returns ‘?’ (question mark).  If optstring has a leading ‘:’ then a missing option argument causes ‘:’ to be returned instead of
     ‘?’.  In either case, the variable optopt is set to the character that caused the error.  The getopt() function returns -1 when the argument list is
     exhausted.
```

This means that application won't know that parameters were invalid. 

I suspect, that other applications in this repository should be audited as well. 
`bjoentegaard` freezing if invalid parameters has been supplied
This is a GitHub Issue
repo:libde265
owner:strukturag
Title : `bjoentegaard` freezing if invalid parameters has been supplied
Issue date:

--- start body ---
Hi,

`bjoentegaard` app freezez if invalid parameters has been supplied. 

`getopt` documetation states following

```
     The getopt() function returns the next known option character in optstring.  If getopt() encounters a character not found in optstring or if it detects a
     missing option argument, it returns ‘?’ (question mark).  If optstring has a leading ‘:’ then a missing option argument causes ‘:’ to be returned instead of
     ‘?’.  In either case, the variable optopt is set to the character that caused the error.  The getopt() function returns -1 when the argument list is
     exhausted.
```

This means that application won't know that parameters were invalid. 

I suspect, that other applications in this repository should be audited as well. 
--- end body ---
