PHP command-line script - program usage text
<p>I have a PHP script that takes to command line arguments.  I want the user to type the name of the program with no arguments:</p>

<pre><code>$ ./foo.php
</code></pre>

<p>and I want it to output something like:</p>

<pre><code>usage: $ ./foo arg1 arg2 where arg1 is something and arg2 is something else
</code></pre>

<p>Is there a standard way of doing this?</p>

<p>Many thanks :).</p>
