Please ignore this patch; it is an old version. I will resubmit. Sorry for the noise.
On Fri, May 29, 2015 at 11:54 AM, Jonathan K. Bullard <jkbull...@gmail.com> wrote: > Sorry, forgot to add a link to the ticket for this: > > https://community.openvpn.net/openvpn/ticket/557 > > On Fri, May 29, 2015 at 11:38 AM, Jonathan K. Bullard > <jkbull...@gmail.com> wrote: > > The attached patch causes an error if an option has are extra > > parameters; previously they were ignored. > > > > This feature was discussed on the openvpn-devel mailing list: > > http://thread.gmane.org/gmane.network.openvpn.devel/9599 > > > > The patch is for the master branch only -- the consensus of the > > mailing list discussion was that the patch should not be included in > > the 2.3 branch. > > > > The (modified) message "Unrecognized option or missing or extra > > parameter(s)" is used except for a few options: > > > > * The --help option: An extra parameter for --help generates a > > specific error message after showing the syntax message. This is done > > to help a user who tries "--help tls-cipher" or similar, hoping to get > > more information about the "tls-cipher" option. > > > > * The --dhcp-option option: It has its own similar message, into > > which " or extra" has been inserted. > > > > * Ten options such as --up that accept a command (instead of a > > path) already detect extra parameters and generate specific error > > messages that mention double-quoting commands which contain imbedded > > spaces. >