From acd747d37414fac96dc83133f508d68c1cbe1f45 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Mon, 6 Jun 2005 07:11:08 +0000 Subject: [PATCH] - Expose -a as special mode and show whether it is a shell or not --- sapi/cli/php_cli.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 165b7e1c69..a0b9cfaaa2 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -385,8 +385,13 @@ static void php_cli_usage(char *argv0) " %s [options] [-B ] -R [-E ] [--] [args...]\n" " %s [options] [-B ] -F [-E ] [--] [args...]\n" " %s [options] -- [args...]\n" + " %s [options] -a\n" "\n" +#if HAVE_LIBREADLINE || HAVE_LIBEDIT + " -a Run as interactive shell\n" +#else " -a Run interactively\n" +#endif " -c | Look for php.ini file in this directory\n" " -n No php.ini file will be used\n" " -d foo[=bar] Define INI entry foo with value 'bar'\n" @@ -410,7 +415,7 @@ 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" - , prog, prog, prog, prog, prog); + , prog, prog, prog, prog, prog, prog); } /* }}} */ -- 2.50.1