Fossil

Check-in [e237cea4]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Ignore empty command name in help page so that /help/ is treated the same as /help
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:e237cea4c28f51de99a4aa65c7bf66bb38a7396f
User & Date: andygoth 2016-11-05 14:17:06
Context
2016-11-05
14:22
Use symbolic name CMDFLAG_WEBPAGE instead of directly saying 0x08 check-in: dfa23f5b user: andygoth tags: trunk
14:17
Ignore empty command name in help page so that /help/ is treated the same as /help check-in: e237cea4 user: andygoth tags: trunk
14:15
Include name of command or page in help title check-in: 9b15ec0d user: andygoth tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/dispatch.c.

231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
** Show the built-in help text for CMD.  CMD can be a command-line interface
** command or a page name from the web interface.
*/
void help_page(void){
  const char *zCmd = P("cmd");

  if( zCmd==0 ) zCmd = P("name");
  if( zCmd ){
    int rc;
    const CmdOrPage *pCmd = 0;

    style_header("Help: %s", zCmd);

    style_submenu_element("Command-List", "%s/help", g.zTop);
    if( *zCmd=='/' ){







|







231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
** Show the built-in help text for CMD.  CMD can be a command-line interface
** command or a page name from the web interface.
*/
void help_page(void){
  const char *zCmd = P("cmd");

  if( zCmd==0 ) zCmd = P("name");
  if( zCmd && *zCmd ){
    int rc;
    const CmdOrPage *pCmd = 0;

    style_header("Help: %s", zCmd);

    style_submenu_element("Command-List", "%s/help", g.zTop);
    if( *zCmd=='/' ){