<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Python&#8217;s optparse for human beings</title>
	<atom:link href="http://www.alexonlinux.com/pythons-optparse-for-human-beings/feed" rel="self" type="application/rss+xml" />
	<link>http://www.alexonlinux.com/pythons-optparse-for-human-beings</link>
	<description></description>
	<lastBuildDate>Fri, 19 Mar 2010 17:30:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Alexander Sandler</title>
		<link>http://www.alexonlinux.com/pythons-optparse-for-human-beings/comment-page-1#comment-23766</link>
		<dc:creator>Alexander Sandler</dc:creator>
		<pubDate>Sun, 28 Feb 2010 08:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexonlinux.com/?p=1162#comment-23766</guid>
		<description>&lt;a href=&#039;#comment-23760&#039; rel=&quot;nofollow&quot;&gt;@Philip&lt;/a&gt;
Oh, I see your point. You are right, this feature isn&#039;t implemented yet. I think you can submit a feature request here: http://bugs.python.org/&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;23766&#039;,&#039;Alexander Sandler&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;23766&#039;,&#039;Alexander Sandler&#039;,&#039;&lt;a href=\&#039;#comment-23760\&#039; rel=\&quot;nofollow\&quot;&gt;@Philip&lt;\/a&gt;\r\nOh, I see your point. You are right, this feature isn\&#039;t implemented yet. I think you can submit a feature request here: http:\/\/bugs.python.org\/&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p><a href="#comment-23760' rel="nofollow">@Philip</a><br />
Oh, I see your point. You are right, this feature isn&#8217;t implemented yet. I think you can submit a feature request here: <a href="http://bugs.python.org/" onclick="return TrackClick('http%3A%2F%2Fbugs.python.org%2F','http%3A%2F%2Fbugs.python.org%2F')" rel="nofollow">http://bugs.python.org/</a>
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('23766','Alexander Sandler'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('23766','Alexander Sandler','&lt;a href=\'#comment-23760\' rel=\&quot;nofollow\&quot;&gt;@Philip&lt;\/a&gt;\r\nOh, I see your point. You are right, this feature isn\'t implemented yet. I think you can submit a feature request here: http:\/\/bugs.python.org\/'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip</title>
		<link>http://www.alexonlinux.com/pythons-optparse-for-human-beings/comment-page-1#comment-23760</link>
		<dc:creator>Philip</dc:creator>
		<pubDate>Thu, 25 Feb 2010 16:39:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexonlinux.com/?p=1162#comment-23760</guid>
		<description>@Alex

Alex, you might have gotten me wrong. I was looking for something to display the possible choices of an option within that options help.

Example:
parser.add_option(&quot;-m&quot;, &quot;--mesh&quot;, choices=[&#039;dt_planar_trimesh&#039;,&#039;af_planar_trimesh&#039;,&#039;af_planar_quadmesh&#039;],\
			  dest=&quot;mesh&quot;,\
			  help=&quot;algorithm and element type for automeshing [%default out of %choices]&quot;)

However, &quot;%choices&quot; is not translated into (&#039;dt_planar_trimesh&#039;,&#039;af_planar_trimesh&#039;,&#039;af_planar_quadmesh&#039;), which would be nice...&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;23760&#039;,&#039;Philip&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;23760&#039;,&#039;Philip&#039;,&#039;@Alex\r\n\r\nAlex, you might have gotten me wrong. I was looking for something to display the possible choices of an option within that options help.\r\n\r\nExample:\r\nparser.add_option(\&quot;-m\&quot;, \&quot;--mesh\&quot;, choices=&#91;\&#039;dt_planar_trimesh\&#039;,\&#039;af_planar_trimesh\&#039;,\&#039;af_planar_quadmesh\&#039;&#93;,\\r\n			  dest=\&quot;mesh\&quot;,\\r\n			  help=\&quot;algorithm and element type for automeshing &#91;%default out of %choices&#93;\&quot;)\r\n\r\nHowever, \&quot;%choices\&quot; is not translated into (\&#039;dt_planar_trimesh\&#039;,\&#039;af_planar_trimesh\&#039;,\&#039;af_planar_quadmesh\&#039;), which would be nice...&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>@Alex</p>
<p>Alex, you might have gotten me wrong. I was looking for something to display the possible choices of an option within that options help.</p>
<p>Example:<br />
parser.add_option(&#8220;-m&#8221;, &#8220;&#8211;mesh&#8221;, choices=['dt_planar_trimesh','af_planar_trimesh','af_planar_quadmesh'],\<br />
			  dest=&#8221;mesh&#8221;,\<br />
			  help=&#8221;algorithm and element type for automeshing [%default out of %choices]&#8220;)</p>
<p>However, &#8220;%choices&#8221; is not translated into (&#8216;dt_planar_trimesh&#8217;,'af_planar_trimesh&#8217;,'af_planar_quadmesh&#8217;), which would be nice&#8230;
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('23760','Philip'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('23760','Philip','@Alex\r\n\r\nAlex, you might have gotten me wrong. I was looking for something to display the possible choices of an option within that options help.\r\n\r\nExample:\r\nparser.add_option(\&quot;-m\&quot;, \&quot;--mesh\&quot;, choices=&amp;#91;\'dt_planar_trimesh\',\'af_planar_trimesh\',\'af_planar_quadmesh\'&amp;#93;,\\r\n			  dest=\&quot;mesh\&quot;,\\r\n			  help=\&quot;algorithm and element type for automeshing &amp;#91;%default out of %choices&amp;#93;\&quot;)\r\n\r\nHowever, \&quot;%choices\&quot; is not translated into (\'dt_planar_trimesh\',\'af_planar_trimesh\',\'af_planar_quadmesh\'), which would be nice...'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Sandler</title>
		<link>http://www.alexonlinux.com/pythons-optparse-for-human-beings/comment-page-1#comment-23759</link>
		<dc:creator>Alexander Sandler</dc:creator>
		<pubDate>Thu, 25 Feb 2010 14:45:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexonlinux.com/?p=1162#comment-23759</guid>
		<description>&lt;a href=&#039;#comment-23757&#039; rel=&quot;nofollow&quot;&gt;@Philip&lt;/a&gt;
Yes, as of Python2.6 usage only supports %prog. And I rarely change usage myself because of it. It is better to let optparse to generate help by itself. What you can do is to use metavar to change how it displays things, but this is as much as you can do.&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;23759&#039;,&#039;Alexander Sandler&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;23759&#039;,&#039;Alexander Sandler&#039;,&#039;&lt;a href=\&#039;#comment-23757\&#039; rel=\&quot;nofollow\&quot;&gt;@Philip&lt;\/a&gt;\r\nYes, as of Python2.6 usage only supports %prog. And I rarely change usage myself because of it. It is better to let optparse to generate help by itself. What you can do is to use metavar to change how it displays things, but this is as much as you can do.&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p><a href="#comment-23757' rel="nofollow">@Philip</a><br />
Yes, as of Python2.6 usage only supports %prog. And I rarely change usage myself because of it. It is better to let optparse to generate help by itself. What you can do is to use metavar to change how it displays things, but this is as much as you can do.
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('23759','Alexander Sandler'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('23759','Alexander Sandler','&lt;a href=\'#comment-23757\' rel=\&quot;nofollow\&quot;&gt;@Philip&lt;\/a&gt;\r\nYes, as of Python2.6 usage only supports %prog. And I rarely change usage myself because of it. It is better to let optparse to generate help by itself. What you can do is to use metavar to change how it displays things, but this is as much as you can do.'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip</title>
		<link>http://www.alexonlinux.com/pythons-optparse-for-human-beings/comment-page-1#comment-23757</link>
		<dc:creator>Philip</dc:creator>
		<pubDate>Tue, 23 Feb 2010 11:25:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexonlinux.com/?p=1162#comment-23757</guid>
		<description>Thanks for the very good and essential instructions on optparse.

I am currently struggling to print the choices in a %prog mnemonic way. It seems there is only &quot;%prog&quot; and &quot;%default&quot; available, but not &quot;%choices&quot; or the like..?&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;23757&#039;,&#039;Philip&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;23757&#039;,&#039;Philip&#039;,&#039;Thanks for the very good and essential instructions on optparse.\r\n\r\nI am currently struggling to print the choices in a %prog mnemonic way. It seems there is only \&quot;%prog\&quot; and \&quot;%default\&quot; available, but not \&quot;%choices\&quot; or the like..?&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for the very good and essential instructions on optparse.</p>
<p>I am currently struggling to print the choices in a %prog mnemonic way. It seems there is only &#8220;%prog&#8221; and &#8220;%default&#8221; available, but not &#8220;%choices&#8221; or the like..?
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('23757','Philip'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('23757','Philip','Thanks for the very good and essential instructions on optparse.\r\n\r\nI am currently struggling to print the choices in a %prog mnemonic way. It seems there is only \&quot;%prog\&quot; and \&quot;%default\&quot; available, but not \&quot;%choices\&quot; or the like..?'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Sandler</title>
		<link>http://www.alexonlinux.com/pythons-optparse-for-human-beings/comment-page-1#comment-23558</link>
		<dc:creator>Alexander Sandler</dc:creator>
		<pubDate>Sun, 08 Nov 2009 14:50:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexonlinux.com/?p=1162#comment-23558</guid>
		<description>&lt;blockquote&gt;&lt;a href=&#039;#comment-23554&#039; rel=&quot;nofollow&quot;&gt;Originally Posted By Martin&lt;/a&gt;&lt;br/&gt;I would like to use the opts structure to pass along to other functions in my program.  But before doing so, I would like to add some items based on the options the user has already indicated.  But I can&#039;t seem to find a way to add items to opts, or (better yet) to iterate over opts and store the result in a list or dict.

Above you show opts.__dict__&#91;key&#93;, that could be used if I hold all the items in another list first and then iterate over that.  I tried parser._get_all_options()...&lt;/blockquote&gt;
&lt;i&gt;opts&lt;/i&gt; is a simple dictionary. 
You can do:
opts.new_var = &lt;new_var_value&gt;
it will create opts member called new_var and assign it a value new_var_value.&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;23558&#039;,&#039;Alexander Sandler&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;23558&#039;,&#039;Alexander Sandler&#039;,&#039;&lt;blockquote&gt;&lt;a href=\&#039;#comment-23554\&#039; rel=\&quot;nofollow\&quot;&gt;Originally Posted By Martin&lt;\/a&gt;&lt;br\/&gt;I would like to use the opts structure to pass along to other functions in my program.  But before doing so, I would like to add some items based on the options the user has already indicated.  But I can\&#039;t seem to find a way to add items to opts, or (better yet) to iterate over opts and store the result in a list or dict.\r\n\r\nAbove you show opts.__dict__&#91;key&#93;, that could be used if I hold all the items in another list first and then iterate over that.  I tried parser._get_all_options()...&lt;\/blockquote&gt;\r\n&lt;i&gt;opts&lt;\/i&gt; is a simple dictionary. \r\nYou can do:\r\nopts.new_var = &lt;new_var_value&gt;\r\nit will create opts member called new_var and assign it a value new_var_value.&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<blockquote><p><a href="#comment-23554' rel="nofollow">Originally Posted By Martin</a><br />I would like to use the opts structure to pass along to other functions in my program.  But before doing so, I would like to add some items based on the options the user has already indicated.  But I can&#8217;t seem to find a way to add items to opts, or (better yet) to iterate over opts and store the result in a list or dict.</p>
<p>Above you show opts.__dict__&#91;key&#93;, that could be used if I hold all the items in another list first and then iterate over that.  I tried parser._get_all_options()&#8230;</p></blockquote>
<p><i>opts</i> is a simple dictionary.<br />
You can do:<br />
opts.new_var = &lt;new_var_value&gt;<br />
it will create opts member called new_var and assign it a value new_var_value.
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('23558','Alexander Sandler'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('23558','Alexander Sandler','&lt;blockquote&gt;&lt;a href=\'#comment-23554\' rel=\&quot;nofollow\&quot;&gt;Originally Posted By Martin&lt;\/a&gt;&lt;br\/&gt;I would like to use the opts structure to pass along to other functions in my program.  But before doing so, I would like to add some items based on the options the user has already indicated.  But I can\'t seem to find a way to add items to opts, or (better yet) to iterate over opts and store the result in a list or dict.\r\n\r\nAbove you show opts.__dict__&amp;#91;key&amp;#93;, that could be used if I hold all the items in another list first and then iterate over that.  I tried parser._get_all_options()...&lt;\/blockquote&gt;\r\n&lt;i&gt;opts&lt;\/i&gt; is a simple dictionary. \r\nYou can do:\r\nopts.new_var = &amp;lt;new_var_value&amp;gt;\r\nit will create opts member called new_var and assign it a value new_var_value.'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.alexonlinux.com/pythons-optparse-for-human-beings/comment-page-1#comment-23555</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Wed, 04 Nov 2009 00:35:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexonlinux.com/?p=1162#comment-23555</guid>
		<description>Basically I would like to do this,

    for i in parser.values:
        print( &quot;%s - %s&quot; % (i[0], i[1]) )

But parser.values (which is the same as opts) is not a sequence.&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;23555&#039;,&#039;Martin&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;23555&#039;,&#039;Martin&#039;,&#039;Basically I would like to do this,\r\n\r\n    for i in parser.values:\r\n        print( \&quot;%s - %s\&quot; % (i&#91;0&#93;, i&#91;1&#93;) )\r\n\r\nBut parser.values (which is the same as opts) is not a sequence.&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>Basically I would like to do this,</p>
<p>    for i in parser.values:<br />
        print( &#8220;%s &#8211; %s&#8221; % (i[0], i[1]) )</p>
<p>But parser.values (which is the same as opts) is not a sequence.
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('23555','Martin'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('23555','Martin','Basically I would like to do this,\r\n\r\n    for i in parser.values:\r\n        print( \&quot;%s - %s\&quot; % (i&amp;#91;0&amp;#93;, i&amp;#91;1&amp;#93;) )\r\n\r\nBut parser.values (which is the same as opts) is not a sequence.'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.alexonlinux.com/pythons-optparse-for-human-beings/comment-page-1#comment-23554</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Wed, 04 Nov 2009 00:12:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexonlinux.com/?p=1162#comment-23554</guid>
		<description>I would like to use the opts structure to pass along to other functions in my program.  But before doing so, I would like to add some items based on the options the user has already indicated.  But I can&#039;t seem to find a way to add items to opts, or (better yet) to iterate over opts and store the result in a list or dict.

Above you show opts.__dict__[key], that could be used if I hold all the items in another list first and then iterate over that.  I tried parser._get_all_options()...&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;23554&#039;,&#039;Martin&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;23554&#039;,&#039;Martin&#039;,&#039;I would like to use the opts structure to pass along to other functions in my program.  But before doing so, I would like to add some items based on the options the user has already indicated.  But I can\&#039;t seem to find a way to add items to opts, or (better yet) to iterate over opts and store the result in a list or dict.\r\n\r\nAbove you show opts.__dict__&#91;key&#93;, that could be used if I hold all the items in another list first and then iterate over that.  I tried parser._get_all_options()...&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>I would like to use the opts structure to pass along to other functions in my program.  But before doing so, I would like to add some items based on the options the user has already indicated.  But I can&#8217;t seem to find a way to add items to opts, or (better yet) to iterate over opts and store the result in a list or dict.</p>
<p>Above you show opts.__dict__[key], that could be used if I hold all the items in another list first and then iterate over that.  I tried parser._get_all_options()&#8230;
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('23554','Martin'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('23554','Martin','I would like to use the opts structure to pass along to other functions in my program.  But before doing so, I would like to add some items based on the options the user has already indicated.  But I can\'t seem to find a way to add items to opts, or (better yet) to iterate over opts and store the result in a list or dict.\r\n\r\nAbove you show opts.__dict__&amp;#91;key&amp;#93;, that could be used if I hold all the items in another list first and then iterate over that.  I tried parser._get_all_options()...'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew</title>
		<link>http://www.alexonlinux.com/pythons-optparse-for-human-beings/comment-page-1#comment-23489</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Sun, 13 Sep 2009 19:44:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexonlinux.com/?p=1162#comment-23489</guid>
		<description>Great article in addition to the Python docs.

One thing I could not find an answer to is how can you disable the automatic help feature?  When I use:

parser.add_option(&quot;-h&quot;, &quot;--help&quot;, action=&quot;store_true&quot;, dest=&quot;showHelp&quot;, default=False)

I get an error like this:

optparse.OptionConflictError: option -h/--help: conflicting option string(s): -h, --help

I would like to implement my own usage/help message.

Thanks&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;23489&#039;,&#039;Matthew&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;23489&#039;,&#039;Matthew&#039;,&#039;Great article in addition to the Python docs.\r\n\r\nOne thing I could not find an answer to is how can you disable the automatic help feature?  When I use:\r\n\r\nparser.add_option(\&quot;-h\&quot;, \&quot;--help\&quot;, action=\&quot;store_true\&quot;, dest=\&quot;showHelp\&quot;, default=False)\r\n\r\nI get an error like this:\r\n\r\noptparse.OptionConflictError: option -h\/--help: conflicting option string(s): -h, --help\r\n\r\nI would like to implement my own usage\/help message.\r\n\r\nThanks&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>Great article in addition to the Python docs.</p>
<p>One thing I could not find an answer to is how can you disable the automatic help feature?  When I use:</p>
<p>parser.add_option(&#8220;-h&#8221;, &#8220;&#8211;help&#8221;, action=&#8221;store_true&#8221;, dest=&#8221;showHelp&#8221;, default=False)</p>
<p>I get an error like this:</p>
<p>optparse.OptionConflictError: option -h/&#8211;help: conflicting option string(s): -h, &#8211;help</p>
<p>I would like to implement my own usage/help message.</p>
<p>Thanks
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('23489','Matthew'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('23489','Matthew','Great article in addition to the Python docs.\r\n\r\nOne thing I could not find an answer to is how can you disable the automatic help feature?  When I use:\r\n\r\nparser.add_option(\&quot;-h\&quot;, \&quot;--help\&quot;, action=\&quot;store_true\&quot;, dest=\&quot;showHelp\&quot;, default=False)\r\n\r\nI get an error like this:\r\n\r\noptparse.OptionConflictError: option -h\/--help: conflicting option string(s): -h, --help\r\n\r\nI would like to implement my own usage\/help message.\r\n\r\nThanks'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: flav</title>
		<link>http://www.alexonlinux.com/pythons-optparse-for-human-beings/comment-page-1#comment-23472</link>
		<dc:creator>flav</dc:creator>
		<pubDate>Mon, 31 Aug 2009 13:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexonlinux.com/?p=1162#comment-23472</guid>
		<description>Very clear and helpful article ! Tanks !

++&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;23472&#039;,&#039;flav&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;23472&#039;,&#039;flav&#039;,&#039;Very clear and helpful article ! Tanks !\r\n\r\n++&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>Very clear and helpful article ! Tanks !</p>
<p>++
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('23472','flav'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('23472','flav','Very clear and helpful article ! Tanks !\r\n\r\n++'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Sandler</title>
		<link>http://www.alexonlinux.com/pythons-optparse-for-human-beings/comment-page-1#comment-23079</link>
		<dc:creator>Alexander Sandler</dc:creator>
		<pubDate>Tue, 14 Jul 2009 10:29:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexonlinux.com/?p=1162#comment-23079</guid>
		<description>&lt;a href=&#039;#comment-23034&#039; rel=&quot;nofollow&quot;&gt;@Hairy Seaword&lt;/a&gt;
I am not sure that you are right in this particular case because I explicitly asked not to specify default value. However, it is a good rule of thumb. Thanks for pointing it out and I&#039;ll fix the article.&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;23079&#039;,&#039;Alexander Sandler&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;23079&#039;,&#039;Alexander Sandler&#039;,&#039;&lt;a href=\&#039;#comment-23034\&#039; rel=\&quot;nofollow\&quot;&gt;@Hairy Seaword&lt;\/a&gt;\r\nI am not sure that you are right in this particular case because I explicitly asked not to specify default value. However, it is a good rule of thumb. Thanks for pointing it out and I\&#039;ll fix the article.&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p><a href="#comment-23034' rel="nofollow">@Hairy Seaword</a><br />
I am not sure that you are right in this particular case because I explicitly asked not to specify default value. However, it is a good rule of thumb. Thanks for pointing it out and I&#8217;ll fix the article.
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('23079','Alexander Sandler'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('23079','Alexander Sandler','&lt;a href=\'#comment-23034\' rel=\&quot;nofollow\&quot;&gt;@Hairy Seaword&lt;\/a&gt;\r\nI am not sure that you are right in this particular case because I explicitly asked not to specify default value. However, it is a good rule of thumb. Thanks for pointing it out and I\'ll fix the article.'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
</channel>
</rss>
