From: Guus Sliepen Date: Thu, 30 May 2013 14:43:20 +0000 (+0200) Subject: Better optional argument handling. X-Git-Tag: release-1.0.22~7 X-Git-Url: http://tinc-vpn.org/git/browse?a=commitdiff_plain;ds=sidebyside;h=c9c3cc03bfec664f7386011f3fc608d1c0844836;hp=c9c3cc03bfec664f7386011f3fc608d1c0844836;p=tinc Better optional argument handling. 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. ---