cvs: peardoc /en/package/console console-getopt.xml /en/package/console/console-getopt getopt.xml intro-options.xml readphpargv.xml
| From: | Martin Jansen | Date: | Mon, 24 Mar 2003 22:14:37 +0000 |
| Subject: | cvs: peardoc /en/package/console console-getopt.xml /en/package/console/console-getopt getopt.xml intro-options.xml readphpargv.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-515@lists.php.net to get a copy of this message | ||
mj Mon Mar 24 17:14:37 2003 EDT
Modified files:
/peardoc/en/package/console console-getopt.xml
/peardoc/en/package/console/console-getopt getopt.xml
intro-options.xml
readphpargv.xml
Log:
* Typos
Index: peardoc/en/package/console/console-getopt.xml diff -u peardoc/en/package/console/console-getopt.xml:1.2 peardoc/en/package/console/console-getopt.xml:1.3 --- peardoc/en/package/console/console-getopt.xml:1.2 Mon Mar 10 17:27:40 2003 +++ peardoc/en/package/console/console-getopt.xml Mon Mar 24 17:14:37 2003 @@ -1,10 +1,10 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <sect1 id="package.console.console-getopt"> <title>Console_Getopt</title> <para> - <classname>Console_Getopt</classname> provides function - for an easy fetching and processing command-line arguments. + <classname>Console_Getopt</classname> provides functions + for easily fetching and processing command-line arguments. </para> &package.console.console-getopt.intro-options; Index: peardoc/en/package/console/console-getopt/getopt.xml diff -u peardoc/en/package/console/console-getopt/getopt.xml:1.1.1.1 peardoc/en/package/console/console-getopt/getopt.xml:1.2 --- peardoc/en/package/console/console-getopt/getopt.xml:1.1.1.1 Mon Sep 30 23:23:14 2002 +++ peardoc/en/package/console/console-getopt/getopt.xml Mon Mar 24 17:14:37 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1.1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.console.console-getopt.getopt"> <refnamediv> <refname>Console_Getopt::getopt</refname> @@ -22,7 +22,7 @@ <refsect1 id="package.console.console-getopt.getopt.desc"> &title.desc; <para> - Parses the command-line options and return them. + Parses the command-line options and returns them. </para> </refsect1> <refsect1 id="package.console.console-getopt.getopt.parameter"> @@ -38,14 +38,16 @@ <para> <parameter>string $shortoptions</parameter> - specifies the list of allowed short options. See the <link - linkend="package.console.console-getopt.intro-options">"Options" section</link>. + linkend="package.console.console-getopt.intro-options">"Options" section</link> + for more information. </para> </listitem> <listitem> <para> <parameter>array $longoptions</parameter> - specifies the list of allowed long options. Default is <parameter>NULL</parameter>. See the <link - linkend="package.console.console-getopt.intro-options">"Options" section</link>. + linkend="package.console.console-getopt.intro-options">"Options" section</link> + for more information. </para> </listitem> </itemizedlist> @@ -55,7 +57,7 @@ &title.returns; <para> <parameter>array</parameter> - two-element array containing the list of - parsed options and the non-option arguments or a &class.pear-error; + parsed options and the non-option arguments or a &class.pear-error;. </para> </refsect1> <refsect1 id="package.console.console-getopt.getopt.throws"> @@ -83,8 +85,8 @@ Two or more long options starts with the same character. </entry> <entry> - Change the naming of the options. Maybe a typing mistake by the - user is possible too. + Change the naming of the options. It is also possible that + the error is caused by a typing mistake. </entry> </row> <row> @@ -96,8 +98,9 @@ No parameter for a option was given. </entry> <entry> - Normaly user mistake. If the parameter should be optional, you have - to markup the parameter as optional in the option definitions + Normally this is a user mistake. If the parameter is optional, + you have to markup the parameter as optional in the option + definitions. </entry> </row> <row> @@ -109,8 +112,9 @@ A parameter for a option was given. </entry> <entry> - Normaly user mistake. If the option should requires a (optional) - parameter, you have to markup it in the options definition. + Normally this is a user mistake. If the option requires a + (optional) parameter, you have to markup it in the options + definition. </entry> </row> <row> @@ -123,8 +127,8 @@ Unknown option. </entry> <entry> - Normaly user mistake. If the option should exists, you have to - define them in the options definition. + Normally this is a user mistake. If the option exists, you + have to define them in the options definition. </entry> </row> </tbody> Index: peardoc/en/package/console/console-getopt/intro-options.xml diff -u peardoc/en/package/console/console-getopt/intro-options.xml:1.1.1.1 peardoc/en/package/console/console-getopt/intro-options.xml:1.2 --- peardoc/en/package/console/console-getopt/intro-options.xml:1.1.1.1 Mon Sep 30 23:23:14 2002 +++ peardoc/en/package/console/console-getopt/intro-options.xml Mon Mar 24 17:14:37 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1.1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.console.console-getopt.intro-options"> <refnamediv> <refname>Introduction - Options</refname> @@ -8,7 +8,7 @@ <refsect1 id="package.console.console-getopt.intro-options.defining"> <title>Defining options</title> <para> - <function>Getopt</function> support two types of options: <parameter> + <function>Getopt</function> supports two types of options: <parameter> short options</parameter> and <parameter>long options</parameter> <example> <title>Calling a script with short and long options</title> @@ -27,10 +27,10 @@ <programlisting role="php"> $shortoptions = "qlo"; </programlisting> - The order of the chars is not important. Often you have to define options - with (optional) parameters. To express, that a option requires a - parameter, you have to add a colon. If the parameter is optional add - a double colon, ie: + The order of the characters is not important. Often you have + to define options with (optional) parameters. To express that + a option requires a parameter, you have to add a colon. If the + parameter is optional, add a double colon, ie: <programlisting role="php"> $shortoptions = "ql:o::"; </programlisting> @@ -42,20 +42,20 @@ <command>myphpscript</command> <parameter>-o text </parameter> <command>myphpscript</command> <parameter>-o</parameter> </programlisting> - not permitted would be: + whilst <programlisting> <command>myphpscript</command> <parameter>-l</parameter> </programlisting> - The <parameter>-l</parameter> option requires a - parameter, if the option is used. + is not permitted. The <parameter>-l</parameter> option + requires a parameter, if the option is used. </para> <para> - The long options work equal, but you have to defined in - an array + The long options work equally, but they have to be defined in + an array: <programlisting role="php"> $longoptions = array("quite", "lang", "option"); </programlisting> - For defining option parameters, use <parameter>'='</parameter> and + For defining optional parameters, use <parameter>'='</parameter> and <parameter>'=='</parameter> like the colon in short options. <programlisting role="php"> $longoptions = array("quite", "lang=", "option=="); Index: peardoc/en/package/console/console-getopt/readphpargv.xml diff -u peardoc/en/package/console/console-getopt/readphpargv.xml:1.3 peardoc/en/package/console/console-getopt/readphpargv.xml:1.4 --- peardoc/en/package/console/console-getopt/readphpargv.xml:1.3 Mon Mar 10 16:29:32 2003 +++ peardoc/en/package/console/console-getopt/readphpargv.xml Mon Mar 24 17:14:37 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.console.console-getopt.readphpargv"> <refnamediv> <refname>Console_Getopt::readPHPArgv</refname> @@ -18,14 +18,15 @@ <refsect1 id="package.console.console-getopt.readphpargv.desc"> &title.desc; <para> - Safely read the $argv PHP array across different PHP configurations. - Will take care of register_globals and register_argc_argv ini directives + Reads the $argv PHP array across different PHP configurations. + Will take care of the register_globals and register_argc_argv ini + directives. </para> </refsect1> <refsect1 id="package.console.console-getopt.readphpargv.return"> &title.returns; <para> - <parameter>array</parameter> - array containig the options and + <parameter>array</parameter> - array containing the options and parameters or &class.pear-error; </para> </refsect1> @@ -68,17 +69,19 @@ </refsect1> <refsect1 id="package.console.console-getopt.readphpargv.example"> &title.example; - <example> - <title>Using <function>readPHPArgv</function></title> - <programlisting> - <![CDATA[ + <para> + <example> + <title>Using <function>readPHPArgv</function></title> + <programlisting role="php"> + <![CDATA[ $con = new Console_Getopt; $args = $con->readPHPArgv(); array_shift($args); $options = $con->getopt( $args, $shortopt); ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> </refsect1> </refentry>
Index: peardoc/en/package/console/console-getopt.xml diff -u peardoc/en/package/console/console-getopt.xml:1.2 peardoc/en/package/console/console-getopt.xml:1.3 --- peardoc/en/package/console/console-getopt.xml:1.2 Mon Mar 10 17:27:40 2003 +++ peardoc/en/package/console/console-getopt.xml Mon Mar 24 17:14:37 2003 @@ -1,10 +1,10 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <sect1 id="package.console.console-getopt"> <title>Console_Getopt</title> <para> - <classname>Console_Getopt</classname> provides function - for an easy fetching and processing command-line arguments. + <classname>Console_Getopt</classname> provides functions + for easily fetching and processing command-line arguments. </para> &package.console.console-getopt.intro-options; Index: peardoc/en/package/console/console-getopt/getopt.xml diff -u peardoc/en/package/console/console-getopt/getopt.xml:1.1.1.1 peardoc/en/package/console/console-getopt/getopt.xml:1.2 --- peardoc/en/package/console/console-getopt/getopt.xml:1.1.1.1 Mon Sep 30 23:23:14 2002 +++ peardoc/en/package/console/console-getopt/getopt.xml Mon Mar 24 17:14:37 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1.1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.console.console-getopt.getopt"> <refnamediv> <refname>Console_Getopt::getopt</refname> @@ -22,7 +22,7 @@ <refsect1 id="package.console.console-getopt.getopt.desc"> &title.desc; <para> - Parses the command-line options and return them. + Parses the command-line options and returns them. </para> </refsect1> <refsect1 id="package.console.console-getopt.getopt.parameter"> @@ -38,14 +38,16 @@ <para> <parameter>string $shortoptions</parameter> - specifies the list of allowed short options. See the <link - linkend="package.console.console-getopt.intro-options">"Options" section</link>. + linkend="package.console.console-getopt.intro-options">"Options" section</link> + for more information. </para> </listitem> <listitem> <para> <parameter>array $longoptions</parameter> - specifies the list of allowed long options. Default is <parameter>NULL</parameter>. See the <link - linkend="package.console.console-getopt.intro-options">"Options" section</link>. + linkend="package.console.console-getopt.intro-options">"Options" section</link> + for more information. </para> </listitem> </itemizedlist> @@ -55,7 +57,7 @@ &title.returns; <para> <parameter>array</parameter> - two-element array containing the list of - parsed options and the non-option arguments or a &class.pear-error; + parsed options and the non-option arguments or a &class.pear-error;. </para> </refsect1> <refsect1 id="package.console.console-getopt.getopt.throws"> @@ -83,8 +85,8 @@ Two or more long options starts with the same character. </entry> <entry> - Change the naming of the options. Maybe a typing mistake by the - user is possible too. + Change the naming of the options. It is also possible that + the error is caused by a typing mistake. </entry> </row> <row> @@ -96,8 +98,9 @@ No parameter for a option was given. </entry> <entry> - Normaly user mistake. If the parameter should be optional, you have - to markup the parameter as optional in the option definitions + Normally this is a user mistake. If the parameter is optional, + you have to markup the parameter as optional in the option + definitions. </entry> </row> <row> @@ -109,8 +112,9 @@ A parameter for a option was given. </entry> <entry> - Normaly user mistake. If the option should requires a (optional) - parameter, you have to markup it in the options definition. + Normally this is a user mistake. If the option requires a + (optional) parameter, you have to markup it in the options + definition. </entry> </row> <row> @@ -123,8 +127,8 @@ Unknown option. </entry> <entry> - Normaly user mistake. If the option should exists, you have to - define them in the options definition. + Normally this is a user mistake. If the option exists, you + have to define them in the options definition. </entry> </row> </tbody> Index: peardoc/en/package/console/console-getopt/intro-options.xml diff -u peardoc/en/package/console/console-getopt/intro-options.xml:1.1.1.1 peardoc/en/package/console/console-getopt/intro-options.xml:1.2 --- peardoc/en/package/console/console-getopt/intro-options.xml:1.1.1.1 Mon Sep 30 23:23:14 2002 +++ peardoc/en/package/console/console-getopt/intro-options.xml Mon Mar 24 17:14:37 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1.1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.console.console-getopt.intro-options"> <refnamediv> <refname>Introduction - Options</refname> @@ -8,7 +8,7 @@ <refsect1 id="package.console.console-getopt.intro-options.defining"> <title>Defining options</title> <para> - <function>Getopt</function> support two types of options: <parameter> + <function>Getopt</function> supports two types of options: <parameter> short options</parameter> and <parameter>long options</parameter> <example> <title>Calling a script with short and long options</title> @@ -27,10 +27,10 @@ <programlisting role="php"> $shortoptions = "qlo"; </programlisting> - The order of the chars is not important. Often you have to define options - with (optional) parameters. To express, that a option requires a - parameter, you have to add a colon. If the parameter is optional add - a double colon, ie: + The order of the characters is not important. Often you have + to define options with (optional) parameters. To express that + a option requires a parameter, you have to add a colon. If the + parameter is optional, add a double colon, ie: <programlisting role="php"> $shortoptions = "ql:o::"; </programlisting> @@ -42,20 +42,20 @@ <command>myphpscript</command> <parameter>-o text </parameter> <command>myphpscript</command> <parameter>-o</parameter> </programlisting> - not permitted would be: + whilst <programlisting> <command>myphpscript</command> <parameter>-l</parameter> </programlisting> - The <parameter>-l</parameter> option requires a - parameter, if the option is used. + is not permitted. The <parameter>-l</parameter> option + requires a parameter, if the option is used. </para> <para> - The long options work equal, but you have to defined in - an array + The long options work equally, but they have to be defined in + an array: <programlisting role="php"> $longoptions = array("quite", "lang", "option"); </programlisting> - For defining option parameters, use <parameter>'='</parameter> and + For defining optional parameters, use <parameter>'='</parameter> and <parameter>'=='</parameter> like the colon in short options. <programlisting role="php"> $longoptions = array("quite", "lang=", "option=="); Index: peardoc/en/package/console/console-getopt/readphpargv.xml diff -u peardoc/en/package/console/console-getopt/readphpargv.xml:1.3 peardoc/en/package/console/console-getopt/readphpargv.xml:1.4 --- peardoc/en/package/console/console-getopt/readphpargv.xml:1.3 Mon Mar 10 16:29:32 2003 +++ peardoc/en/package/console/console-getopt/readphpargv.xml Mon Mar 24 17:14:37 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.console.console-getopt.readphpargv"> <refnamediv> <refname>Console_Getopt::readPHPArgv</refname> @@ -18,14 +18,15 @@ <refsect1 id="package.console.console-getopt.readphpargv.desc"> &title.desc; <para> - Safely read the $argv PHP array across different PHP configurations. - Will take care of register_globals and register_argc_argv ini directives + Reads the $argv PHP array across different PHP configurations. + Will take care of the register_globals and register_argc_argv ini + directives. </para> </refsect1> <refsect1 id="package.console.console-getopt.readphpargv.return"> &title.returns; <para> - <parameter>array</parameter> - array containig the options and + <parameter>array</parameter> - array containing the options and parameters or &class.pear-error; </para> </refsect1> @@ -68,17 +69,19 @@ </refsect1> <refsect1 id="package.console.console-getopt.readphpargv.example"> &title.example; - <example> - <title>Using <function>readPHPArgv</function></title> - <programlisting> - <![CDATA[ + <para> + <example> + <title>Using <function>readPHPArgv</function></title> + <programlisting role="php"> + <![CDATA[ $con = new Console_Getopt; $args = $con->readPHPArgv(); array_shift($args); $options = $con->getopt( $args, $shortopt); ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> </refsect1> </refentry>