From 4258bc6f26ed8dd186ff305d7d28f8ad1eecf4bb Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 11 Dec 2005 02:16:24 +0000 Subject: [PATCH] - Add docu --- sapi/cli/php.1.in | 30 ++++++++++++++++++++++++++++++ sapi/cli/php_cli.c | 7 +++++++ 2 files changed, 37 insertions(+) diff --git a/sapi/cli/php.1.in b/sapi/cli/php.1.in index fb77577353..2658b384b1 100644 --- a/sapi/cli/php.1.in +++ b/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 diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 743ae2d3a8..2b3254cc40 100644 --- a/sapi/cli/php_cli.c +++ b/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 Show information about function .\n" + " --rc Show information about class .\n" + " --re Show information about extension .\n" + "\n" , prog, prog, prog, prog, prog, prog); } /* }}} */ -- 2.50.1