cvs: phpdoc /en/features commandline.xml
| From: | Hannes Magnusson | Date: | Fri, 23 Nov 2007 19:47:45 +0000 |
| Subject: | cvs: phpdoc /en/features commandline.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-435@lists.php.net to get a copy of this message | ||
bjori Fri Nov 23 19:47:45 2007 UTC
Modified files:
/phpdoc/en/features commandline.xml
Log:
- Add notes about -f and script arguments
- Fix typo
http://cvs.php.net/viewvc.cgi/phpdoc/en/features/commandline.xml?r1=1.51&r2=1.52&diff_format=u
Index: phpdoc/en/features/commandline.xml
diff -u phpdoc/en/features/commandline.xml:1.51 phpdoc/en/features/commandline.xml:1.52
--- phpdoc/en/features/commandline.xml:1.51 Wed Nov 21 11:41:15 2007
+++ phpdoc/en/features/commandline.xml Fri Nov 23 19:47:44 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.51 $ -->
+<!-- $Revision: 1.52 $ -->
<chapter xml:id="features.commandline" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Using PHP from the command line</title>
<para>
@@ -426,6 +426,13 @@
<literal>.php</literal> extension but can have any name or extension
you wish.
</para>
+ <note>
+ <para>
+ If you need to pass arguments to your scripts you need to pass
+ <literal>--</literal> as the first argument when using the
+ <option>-f</option> switch.
+ </para>
+ </note>
</listitem>
<listitem>
<para>
@@ -693,10 +700,17 @@
<entry>--file</entry>
<entry>
<para>
- Parses and executed the given filename to the <option>-f</option>
+ Parses and executes the given filename to the <option>-f</option>
option. This switch is optional and can be left out. Only providing
the filename to execute is sufficient.
</para>
+ <note>
+ <para>
+ To pass arguments to scripts the first argument needs to be
+ <literal>--</literal>, otherwise PHP will interperate them as PHP
+ options.
+ </para>
+ </note>
</entry>
</row>
<row>