 &quot;search&quot; keywords
of the second and third argument tables</P>
<PRE CLASS="western"><B>else</B> <B>if</B> (cmd2-&gt;count &gt; 0)
   {
   <I>/* here the cmd2 argument was correct, so presume syntax 2 was intended target */</I>
   arg_print_errors(stdout,end2,progname);
   printf(&quot;usage: %s &quot;, progname);
   arg_print_syntax(stdout,argtable2,&quot;\n&quot;);
   }
<B>else</B> <B>if</B> (cmd3-&gt;count &gt; 0)
   {
   <I>/* here the cmd3 argument was correct, so presume syntax 3 was intended