Hello,
the new version should fix most of the mentioned issues.
Tobias Jakobi wrote:
As a general note I would recommend keeping statements on separate lines (none of if (foo) far()) as it makes debugging easier.
OK, changing this.
Except for this, I didn't change it since I don't see the point. In fact I think that splitting the few occurrences makes the code less readable.
I haven't worked with getopt before, so I gave it a try and made all these hardcoded parameters configurable.
With best wishes, Tobias