[Nagiosplug-devel] --extra-opts (was: New Threshold Syntax)

Holger Weiß holger at cis.fu-berlin.de
Wed Sep 4 14:04:44 CEST 2013


* Páll Guðjón Sigurðsson <palli at ok.is> [2013-09-03 13:55]:
> 1) By observing the examples it seems the following is allowed:
> # ./check_stuff --extra-opts=@/etc/myconfig.ini
> # ./check_stuff --extra-opts -jk --some-other-opt
> 
> The latter one causes confusing ambiguity and its not supported by
> python's OptionParser.

Just to clarify: the ambiguity is about

	-extra-opts=-jk
vs.
	-jk --extra-opts

and the thing not supported by Python's OptionParser is options that
take an optional argument?

I would've thought that "--extra-opts -jk" is quite obviously meant to
be equivalent to "-jk --extra-opts"; but if your parser doesn't support
this, that's of course a major problem.  Hmm.

Holger




More information about the Devel mailing list