Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | help page uses detected command, not the given input parameter as header |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | wolfgangHelpCmd |
| Files: | files | file ages | folders |
| SHA1: |
9017bde28faac42de225e1ff7fe93ebc |
| User & Date: | wolfgang 2010-10-08 12:42:41.000 |
Context
|
2010-10-08
| ||
| 12:56 | corrected layout for wrong calls to help web page ... (check-in: d6e69d6a18 user: wolfgang tags: wolfgangHelpCmd) | |
| 12:42 | help page uses detected command, not the given input parameter as header ... (check-in: 9017bde28f user: wolfgang tags: wolfgangHelpCmd) | |
| 12:39 | help page linkt to doc files references fossil-scm.org, not the local repository to be usefull in all repositories, not only in clones of fossil ... (check-in: 47f4866bbc user: wolfgang tags: wolfgangHelpCmd) | |
Changes
Changes to src/main.c.
| ︙ | ︙ | |||
607 608 609 610 611 612 613 |
void help_page(void){
const char * zCmd = P("cmd");
style_header("Command line help %s%s",zCmd?" - ":"",zCmd?zCmd:"");
if( zCmd ){
int rc, idx;
| < > > > | 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 |
void help_page(void){
const char * zCmd = P("cmd");
style_header("Command line help %s%s",zCmd?" - ":"",zCmd?zCmd:"");
if( zCmd ){
int rc, idx;
rc = name_search(zCmd, aCommand, count(aCommand), &idx);
if( rc==1 ){
@ <h1>%s(zCmd)</h1>
@ unknown command: %s(zCmd)
}else if( rc==2 ){
@ <h1>%s(zCmd)</h1>
@ ambiguous command prefix: %s(zCmd)
}else{
char *zSrc, *zDest;
int src,dest,len;
@ <h1>%s(aCommand[idx].zName)</h1>
zSrc = (char*)aCmdHelp[idx];
if( zSrc==0 || *zSrc==0 ){
@ no help available for the %s(aCommand[idx].zName) command
}else{
len = strlen(zSrc);
zDest = malloc(len+1);
for(src=dest=0;zSrc[src];){
|
| ︙ | ︙ |