--extra-opts (was: New Threshold Syntax)

Holger Weiß <[email protected]>
Newsgroups gmane.network.nagios.plugins.devel
Organization Freie Universität Berlin
Message-ID <[email protected]>
* Páll Guðjón Sigurðsson <[email protected]> [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

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________________
Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5upmplPMkL2fr@public.gmane.orget
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.