Browse Source

- Add docu

migration/RELEASE_1_0_0
Marcus Boerger 21 years ago
parent
commit
4258bc6f26
  1. 30
      sapi/cli/php.1.in
  2. 7
      sapi/cli/php_cli.c

30
sapi/cli/php.1.in

@ -283,6 +283,36 @@ Arguments passed to script. Use
when first argument starts with
.B '\-'
or script is read from stdin
.TP
.PD 0
.B \-\-rfunction
.IR name
.TP
.PD 1
.B \-\-rf
.IR name
Shows information about function
.B name
.TP
.PD 0
.B \-\-rclass
.IR name
.TP
.PD 1
.B \-\-rc
.IR name
Shows information about class
.B name
.TP
.PD 0
.B \-\-rextension
.IR name
.TP
.PD 1
.B \-\-re
.IR name
Shows information about extension
.B name
.SH FILES
.TP 15
.B php\-cli.ini

7
sapi/cli/php_cli.c

@ -139,8 +139,11 @@ static const opt_struct OPTIONS[] = {
{'v', 0, "version"},
{'z', 1, "zend-extension"},
#ifdef HAVE_REFLECTION
{10, 1, "rf"},
{10, 1, "rfunction"},
{11, 1, "rc"},
{11, 1, "rclass"},
{12, 1, "re"},
{12, 1, "rextension"},
#endif
{'-', 0, NULL} /* end of args */
@ -431,6 +434,10 @@ static void php_cli_usage(char *argv0)
" args... Arguments passed to script. Use -- args when first argument\n"
" starts with - or script is read from stdin\n"
"\n"
" --rf <name> Show information about function <name>.\n"
" --rc <name> Show information about class <name>.\n"
" --re <name> Show information about extension <name>.\n"
"\n"
, prog, prog, prog, prog, prog, prog);
}
/* }}} */

Loading…
Cancel
Save