diff options
author | krakjoe <joe.watkins@live.co.uk> | 2013-11-24 15:24:12 +0000 |
---|---|---|
committer | krakjoe <joe.watkins@live.co.uk> | 2013-11-24 15:24:12 +0000 |
commit | e99fd228661163f152e97ebceb102929af11c092 (patch) | |
tree | 1f235e501e60186439e934032ac83467a5702673 /phpdbg_help.c | |
parent | c7ef093095fa1a8c139b53643b96b997643ee643 (diff) | |
download | php-git-e99fd228661163f152e97ebceb102929af11c092.tar.gz |
move oplog command to set commands
add help for set commands
move set down in the list of prompt commands
Diffstat (limited to 'phpdbg_help.c')
-rw-r--r-- | phpdbg_help.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/phpdbg_help.c b/phpdbg_help.c index 3a699d69f0..09f16252d3 100644 --- a/phpdbg_help.c +++ b/phpdbg_help.c @@ -24,6 +24,7 @@ #include "phpdbg_break.h" #include "phpdbg_list.h" #include "phpdbg_info.h" +#include "phpdbg_set.h" ZEND_EXTERN_MODULE_GLOBALS(phpdbg); @@ -430,7 +431,28 @@ PHPDBG_HELP(oplog) /* {{{ */ phpdbg_writeln("Note: upon failure to open a new oplog, the last oplog is held open"); phpdbg_help_footer(); return SUCCESS; -} +} /* }}} */ + +PHPDBG_HELP(set) /* {{{ */ +{ + phpdbg_help_header(); + phpdbg_writeln("Configure how phpdbg looks and behaves with the set command"); + phpdbg_writeln("Specific set commands are show below:"); + phpdbg_notice("Commands"); + { + const phpdbg_command_t *set_command = phpdbg_set_commands; + + phpdbg_writeln("\tAlias\tCommand\t\tPurpose"); + while (set_command && set_command->name) { + if (set_command->alias) { + phpdbg_writeln("\t[%c]\t%s\t\t%s", set_command->alias, set_command->name, set_command->tip); + } else phpdbg_writeln("\t[ ]\t%s\t\t%s", set_command->name, set_command->tip); + ++set_command; + } + } + phpdbg_help_footer(); + return SUCCESS; +} /* }}} */ PHPDBG_HELP(register) /* {{{ */ { |