]> granicus.if.org Git - php/commitdiff
compress help menu
authorkrakjoe <joe.watkins@live.co.uk>
Fri, 22 Nov 2013 19:50:13 +0000 (19:50 +0000)
committerkrakjoe <joe.watkins@live.co.uk>
Fri, 22 Nov 2013 19:50:13 +0000 (19:50 +0000)
phpdbg_help.c
phpdbg_help.h
phpdbg_prompt.c

index c82a48497dfe8aabf7fb6dcdefb689e2de57a668..50b77b3b7d98fe05831af454fbb61737115cfe43 100644 (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;
+} /* }}} */
index c453c506bfd6cd3e6bd13c79bc58c04e4328d8a7..8ec9ee235fd3f9eba8abb54542d780c627c5c53f 100644 (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
 };
index 6b20284a2ef8d5c9291fa3c897412226077a2e03..98c79cf3617188e60d5323d9ae4dae12ecd5028e 100644 (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;