<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to feature-requests</title><link>https://sourceforge.net/p/te-code/feature-requests/</link><description>Recent changes to feature-requests</description><atom:link href="https://sourceforge.net/p/te-code/feature-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 27 Jun 2006 20:06:40 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/te-code/feature-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>Modify usage according to contraints</title><link>https://sourceforge.net/p/te-code/feature-requests/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was wondering if it would be possible to have the&lt;br /&gt;
displayed usage tailored according to the contraints added?&lt;/p&gt;
&lt;p&gt;For example, if I have my 'program', with a mandatory&lt;br /&gt;
option called 'name' and execute it like this:&lt;/p&gt;
&lt;p&gt;bash#program&lt;/p&gt;
&lt;p&gt;I get the message:&lt;/p&gt;
&lt;p&gt;error: option 'name' is required. Exiting.&lt;br /&gt;
Usage: program [-n|--name &amp;lt;arg&amp;gt;]&lt;/p&gt;
&lt;p&gt;Since 'name' is not optional, ideally the usage would show:&lt;/p&gt;
&lt;p&gt;error: option 'name' is required. Exiting.&lt;br /&gt;
Usage: program -n|--name &amp;lt;arg&amp;gt;&lt;/p&gt;
&lt;p&gt;You could imagine more complicated scenarios when at&lt;br /&gt;
last one option of a group is mandatory.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
JP&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 27 Jun 2006 20:06:40 -0000</pubDate><guid>https://sourceforge.net1d377694caeb964edefeb4d3ac02491fdda264ce</guid></item></channel></rss>