1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00

compress help menu

This commit is contained in:
krakjoe
2013-11-22 19:50:13 +00:00
parent e662fd9eb0
commit 88a95efdfa
3 changed files with 25 additions and 18 deletions
+23
View File
@@ -467,3 +467,26 @@ PHPDBG_HELP(shell) /* {{{ */
phpdbg_help_footer();
return SUCCESS;
} /* }}} */
PHPDBG_HELP(options) /* {{{ */
{
phpdbg_help_header();
phpdbg_writeln("Below are the command line options supported by phpdbg");
phpdbg_notice("Command Line Options and Flags");
phpdbg_writeln(" -c\t-c/my/php.ini\t\tSet php.ini file to load");
phpdbg_writeln(" -d\t-dmemory_limit=4G\tSet a php.ini directive");
phpdbg_writeln(" -n\tN/A\t\t\tDisable default php.ini");
phpdbg_writeln(" -q\tN/A\t\t\tSupress welcome banner");
phpdbg_writeln(" -e\t-emytest.php\t\tSet execution context");
phpdbg_writeln(" -v\tN/A\t\t\tEnable oplog output");
phpdbg_writeln(" -s\tN/A\t\t\tEnable stepping");
phpdbg_writeln(" -b\tN/A\t\t\tDisable colour");
phpdbg_writeln(" -i\t-imy.init\t\tSet .phpdbginit file");
phpdbg_writeln(" -I\tN/A\t\t\tIgnore default .phpdbginit");
phpdbg_writeln(" -O\t-Omy.oplog\t\tSets oplog output file");
phpdbg_writeln(" -r\tN/A\t\t\tRun execution context");
phpdbg_writeln(" -E\tN/A\t\t\tEnable step through eval, careful !");
phpdbg_notice("Passing -rr will quit automatically after execution");
phpdbg_help_footer();
return SUCCESS;
} /* }}} */
+2
View File
@@ -49,6 +49,7 @@ PHPDBG_HELP(quiet);
PHPDBG_HELP(list);
PHPDBG_HELP(oplog);
PHPDBG_HELP(register);
PHPDBG_HELP(options);
PHPDBG_HELP(shell);
/**
@@ -75,6 +76,7 @@ static const phpdbg_command_t phpdbg_help_commands[] = {
PHPDBG_COMMAND_D_EX(list, "list code gives you quick access to code", 'l', help_list, NULL, 0),
PHPDBG_COMMAND_D_EX(oplog, "keep clutter off the screen by logging oplines", 'O', help_oplog, NULL, 0),
PHPDBG_COMMAND_D_EX(register, "register a function for use as a command", 'R', help_register,NULL, 0),
PHPDBG_COMMAND_D_EX(options, "show information about command line options", 'o', help_options, NULL, 0),
PHPDBG_COMMAND_D_EX(shell, "execute system commands with direct shell access", '-', help_shell, NULL, 0),
PHPDBG_END_COMMAND
};
-18
View File
@@ -972,24 +972,6 @@ PHPDBG_COMMAND(help) /* {{{ */
++help_command;
}
phpdbg_notice("Command Line Options and Flags");
phpdbg_writeln(" Option\tExample\t\t\tPurpose");
phpdbg_writeln(EMPTY);
phpdbg_writeln(" -c\t-c/my/php.ini\t\tSet php.ini file to load");
phpdbg_writeln(" -d\t-dmemory_limit=4G\tSet a php.ini directive");
phpdbg_writeln(" -n\tN/A\t\t\tDisable default php.ini");
phpdbg_writeln(" -q\tN/A\t\t\tSupress welcome banner");
phpdbg_writeln(" -e\t-emytest.php\t\tSet execution context");
phpdbg_writeln(" -v\tN/A\t\t\tEnable oplog output");
phpdbg_writeln(" -s\tN/A\t\t\tEnable stepping");
phpdbg_writeln(" -b\tN/A\t\t\tDisable colour");
phpdbg_writeln(" -i\t-imy.init\t\tSet .phpdbginit file");
phpdbg_writeln(" -I\tN/A\t\t\tIgnore default .phpdbginit");
phpdbg_writeln(" -O\t-Omy.oplog\t\tSets oplog output file");
phpdbg_writeln(" -r\tN/A\t\t\tRun execution context");
phpdbg_writeln(" -E\tN/A\t\t\tEnable step through eval, careful !");
phpdbg_notice(
"Note: passing -rr will cause phpdbg to quit after execution");
phpdbg_help_footer();
} break;