Better optional argument handling.
authorGuus Sliepen <guus@tinc-vpn.org>
Thu, 30 May 2013 14:43:20 +0000 (16:43 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 30 May 2013 14:43:20 +0000 (16:43 +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 tinc ignored those without a warning. Now tinc will
allow optional arguments with whitespace inbetween, and will give an error when
it encounters any other non-option arguments.


No differences found