This patch sources out the target getopt parsing into a separate code-block which before has been done as a side-effect of a check. This removes also a level of indentation and makes the part more understandable when reading the code. Signed-off-by: Peter Warasin ---