<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to feature-requests</title><link href="https://sourceforge.net/p/te-code/feature-requests/" rel="alternate"/><link href="https://sourceforge.net/p/te-code/feature-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/te-code/feature-requests/</id><updated>2006-06-27T20:06:40Z</updated><subtitle>Recent changes to feature-requests</subtitle><entry><title>Modify usage according to contraints</title><link href="https://sourceforge.net/p/te-code/feature-requests/1/" rel="alternate"/><published>2006-06-27T20:06:40Z</published><updated>2006-06-27T20:06:40Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net1d377694caeb964edefeb4d3ac02491fdda264ce</id><summary type="html">&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;</summary></entry></feed>