diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2014-04-13 00:27:46 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2014-04-13 00:27:46 +0200 |
commit | 3db29ee43960a4e164244a55b0e2a4b23a112e49 (patch) | |
tree | bced3b5e38fe72a6a308e93f57602eb148ee93f3 /phpdbg_help.c | |
parent | 86a77317630255a254888de4437a8b060efdb863 (diff) | |
download | php-git-3db29ee43960a4e164244a55b0e2a4b23a112e49.tar.gz |
Added support for command line arg passing
"phpdbg -- arg" in shell
"run arg" in phpdbg prompt
Diffstat (limited to 'phpdbg_help.c')
-rw-r--r-- | phpdbg_help.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/phpdbg_help.c b/phpdbg_help.c index 3aa82848e0..dd8e530522 100644 --- a/phpdbg_help.c +++ b/phpdbg_help.c @@ -379,7 +379,9 @@ phpdbg_help_text_t phpdbg_help_text[] = { " **-S** **-S**cli Override SAPI name, careful!" CR " **-l** **-l**4000 Setup remote console ports" CR " **-a** **-a**192.168.0.3 Setup remote console bind address" CR -" **-V** Print version number" CR CR +" **-V** Print version number" CR +" **--** **--** arg1 arg2 Use to delimit phpdbg arguments and php $argv; append any $argv " +"argument after it" CR CR "**Remote Console Mode**" CR CR @@ -838,11 +840,13 @@ phpdbg_help_text_t phpdbg_help_text[] = { {"run", "Enter the vm, startinging execution. Execution will then continue until the next breakpoint " -"or completion of the script" +"or completion of the script. Add parameters you want to use as $argv" "**Examples**" CR CR " $P run" CR " $P r" CR -" Will cause execution of the context, if it is set." CR CR +" Will cause execution of the context, if it is set" CR CR +" $P r test" CR +" Will execute with $argv[1] == \"test\"" CR CR "Note that the execution context must be set. If not previously compiled, then the script will " "be compiled before execution." CR CR |