From 3db29ee43960a4e164244a55b0e2a4b23a112e49 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Sun, 13 Apr 2014 00:27:46 +0200 Subject: Added support for command line arg passing "phpdbg -- arg" in shell "run arg" in phpdbg prompt --- phpdbg_help.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'phpdbg_help.c') 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 -- cgit v1.2.1