summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-06-06 07:11:08 +0000
committerMarcus Boerger <helly@php.net>2005-06-06 07:11:08 +0000
commitacd747d37414fac96dc83133f508d68c1cbe1f45 (patch)
treee71b2c2d6d5c922ba97473c0e69a218375fa4f46 /sapi/cli/php_cli.c
parent6b295266170abdc585adc7d6f6dc6fdf3315af6a (diff)
downloadphp-git-acd747d37414fac96dc83133f508d68c1cbe1f45.tar.gz
- Expose -a as special mode and show whether it is a shell or not
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r--sapi/cli/php_cli.c7
1 files changed, 6 insertions, 1 deletions
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 <begin_code>] -R <code> [-E <end_code>] [--] [args...]\n"
" %s [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [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 <path>|<file> 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);
}
/* }}} */