Better optional argument handling.
authorGuus Sliepen <guus@tinc-vpn.org>
Thu, 30 May 2013 14:53:16 +0000 (16:53 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 30 May 2013 14:53:16 +0000 (16:53 +0200)
Some options can take an optional argument. However, in this case GNU getopt
requires that the optional argument is right next to the option without
whitespace inbetween. If there is whitespace, getopt will treat it as a
non-option argument, but tincd ignored those without a warning. Now tincd will
allow optional arguments with whitespace inbetween, and will give an error when
it encounters any other non-option arguments.

The tinc binary now requires that all options for itself are given before the
command.


No differences found