Fossil SCM
Stop including settings in the 'Available commands' section of the help web page. Fix typo of '--setting' help option.
Commit
4962fa9e33d89464bde9c2f136314ee555cb0670938e9ed78e7324f2243261cf
Parent
861f4b0bde739b6…
1 file changed
+3
-1
+3
-1
| --- src/dispatch.c | ||
| +++ src/dispatch.c | ||
| @@ -359,18 +359,20 @@ | ||
| 359 | 359 | @ <h1>Available commands:</h1> |
| 360 | 360 | @ <table border="0"><tr> |
| 361 | 361 | for(i=j=0; i<MX_COMMAND; i++){ |
| 362 | 362 | const char *z = aCommand[i].zName; |
| 363 | 363 | if( '/'==*z || strncmp(z,"test",4)==0 ) continue; |
| 364 | + if( (aCommand[i].eCmdFlags & CMDFLAG_SETTING)!=0 ) continue; | |
| 364 | 365 | j++; |
| 365 | 366 | } |
| 366 | 367 | n = (j+5)/6; |
| 367 | 368 | for(i=j=0; i<MX_COMMAND; i++){ |
| 368 | 369 | const char *z = aCommand[i].zName; |
| 369 | 370 | const char *zBoldOn = aCommand[i].eCmdFlags&CMDFLAG_1ST_TIER?"<b>" :""; |
| 370 | 371 | const char *zBoldOff = aCommand[i].eCmdFlags&CMDFLAG_1ST_TIER?"</b>":""; |
| 371 | 372 | if( '/'==*z || strncmp(z,"test",4)==0 ) continue; |
| 373 | + if( (aCommand[i].eCmdFlags & CMDFLAG_SETTING)!=0 ) continue; | |
| 372 | 374 | if( j==0 ){ |
| 373 | 375 | @ <td valign="top"><ul> |
| 374 | 376 | } |
| 375 | 377 | @ <li><a href="%R/help?cmd=%s(z)">%s(zBoldOn)%s(z)%s(zBoldOff)</a></li> |
| 376 | 378 | j++; |
| @@ -564,11 +566,11 @@ | ||
| 564 | 566 | ** setting. Webpage names begin with "/". To display a list of available |
| 565 | 567 | ** topics, use one of: |
| 566 | 568 | ** |
| 567 | 569 | ** %fossil help Show common commands |
| 568 | 570 | ** %fossil help -a|--all Show both common and auxiliary commands |
| 569 | -** %fossil help -s|--settings Show setting names | |
| 571 | +** %fossil help -s|--setting Show setting names | |
| 570 | 572 | ** %fossil help -t|--test Show test commands only |
| 571 | 573 | ** %fossil help -x|--aux Show auxiliary commands only |
| 572 | 574 | ** %fossil help -w|--www Show list of webpages |
| 573 | 575 | */ |
| 574 | 576 | void help_cmd(void){ |
| 575 | 577 |
| --- src/dispatch.c | |
| +++ src/dispatch.c | |
| @@ -359,18 +359,20 @@ | |
| 359 | @ <h1>Available commands:</h1> |
| 360 | @ <table border="0"><tr> |
| 361 | for(i=j=0; i<MX_COMMAND; i++){ |
| 362 | const char *z = aCommand[i].zName; |
| 363 | if( '/'==*z || strncmp(z,"test",4)==0 ) continue; |
| 364 | j++; |
| 365 | } |
| 366 | n = (j+5)/6; |
| 367 | for(i=j=0; i<MX_COMMAND; i++){ |
| 368 | const char *z = aCommand[i].zName; |
| 369 | const char *zBoldOn = aCommand[i].eCmdFlags&CMDFLAG_1ST_TIER?"<b>" :""; |
| 370 | const char *zBoldOff = aCommand[i].eCmdFlags&CMDFLAG_1ST_TIER?"</b>":""; |
| 371 | if( '/'==*z || strncmp(z,"test",4)==0 ) continue; |
| 372 | if( j==0 ){ |
| 373 | @ <td valign="top"><ul> |
| 374 | } |
| 375 | @ <li><a href="%R/help?cmd=%s(z)">%s(zBoldOn)%s(z)%s(zBoldOff)</a></li> |
| 376 | j++; |
| @@ -564,11 +566,11 @@ | |
| 564 | ** setting. Webpage names begin with "/". To display a list of available |
| 565 | ** topics, use one of: |
| 566 | ** |
| 567 | ** %fossil help Show common commands |
| 568 | ** %fossil help -a|--all Show both common and auxiliary commands |
| 569 | ** %fossil help -s|--settings Show setting names |
| 570 | ** %fossil help -t|--test Show test commands only |
| 571 | ** %fossil help -x|--aux Show auxiliary commands only |
| 572 | ** %fossil help -w|--www Show list of webpages |
| 573 | */ |
| 574 | void help_cmd(void){ |
| 575 |
| --- src/dispatch.c | |
| +++ src/dispatch.c | |
| @@ -359,18 +359,20 @@ | |
| 359 | @ <h1>Available commands:</h1> |
| 360 | @ <table border="0"><tr> |
| 361 | for(i=j=0; i<MX_COMMAND; i++){ |
| 362 | const char *z = aCommand[i].zName; |
| 363 | if( '/'==*z || strncmp(z,"test",4)==0 ) continue; |
| 364 | if( (aCommand[i].eCmdFlags & CMDFLAG_SETTING)!=0 ) continue; |
| 365 | j++; |
| 366 | } |
| 367 | n = (j+5)/6; |
| 368 | for(i=j=0; i<MX_COMMAND; i++){ |
| 369 | const char *z = aCommand[i].zName; |
| 370 | const char *zBoldOn = aCommand[i].eCmdFlags&CMDFLAG_1ST_TIER?"<b>" :""; |
| 371 | const char *zBoldOff = aCommand[i].eCmdFlags&CMDFLAG_1ST_TIER?"</b>":""; |
| 372 | if( '/'==*z || strncmp(z,"test",4)==0 ) continue; |
| 373 | if( (aCommand[i].eCmdFlags & CMDFLAG_SETTING)!=0 ) continue; |
| 374 | if( j==0 ){ |
| 375 | @ <td valign="top"><ul> |
| 376 | } |
| 377 | @ <li><a href="%R/help?cmd=%s(z)">%s(zBoldOn)%s(z)%s(zBoldOff)</a></li> |
| 378 | j++; |
| @@ -564,11 +566,11 @@ | |
| 566 | ** setting. Webpage names begin with "/". To display a list of available |
| 567 | ** topics, use one of: |
| 568 | ** |
| 569 | ** %fossil help Show common commands |
| 570 | ** %fossil help -a|--all Show both common and auxiliary commands |
| 571 | ** %fossil help -s|--setting Show setting names |
| 572 | ** %fossil help -t|--test Show test commands only |
| 573 | ** %fossil help -x|--aux Show auxiliary commands only |
| 574 | ** %fossil help -w|--www Show list of webpages |
| 575 | */ |
| 576 | void help_cmd(void){ |
| 577 |