Fossil SCM

Include name of command or page in help title

andygoth 2016-11-05 14:15 trunk
Commit 9b15ec0d6c4f4d329d997d4e90698625f8f7fcc9
1 file changed +4 -1
+4 -1
--- src/dispatch.c
+++ src/dispatch.c
@@ -233,14 +233,15 @@
233233
*/
234234
void help_page(void){
235235
const char *zCmd = P("cmd");
236236
237237
if( zCmd==0 ) zCmd = P("name");
238
- style_header("Help");
239238
if( zCmd ){
240239
int rc;
241240
const CmdOrPage *pCmd = 0;
241
+
242
+ style_header("Help: %s", zCmd);
242243
243244
style_submenu_element("Command-List", "%s/help", g.zTop);
244245
if( *zCmd=='/' ){
245246
/* Some of the webpages require query parameters in order to work.
246247
** @ <h1>The "<a href='%R%s(zCmd)'>%s(zCmd)</a>" page:</h1> */
@@ -262,10 +263,12 @@
262263
@ </blockquote>
263264
}
264265
}
265266
}else{
266267
int i, j, n;
268
+
269
+ style_header("Help");
267270
268271
@ <h1>Available commands:</h1>
269272
@ <table border="0"><tr>
270273
for(i=j=0; i<MX_COMMAND; i++){
271274
const char *z = aCommand[i].zName;
272275
--- src/dispatch.c
+++ src/dispatch.c
@@ -233,14 +233,15 @@
233 */
234 void help_page(void){
235 const char *zCmd = P("cmd");
236
237 if( zCmd==0 ) zCmd = P("name");
238 style_header("Help");
239 if( zCmd ){
240 int rc;
241 const CmdOrPage *pCmd = 0;
 
 
242
243 style_submenu_element("Command-List", "%s/help", g.zTop);
244 if( *zCmd=='/' ){
245 /* Some of the webpages require query parameters in order to work.
246 ** @ <h1>The "<a href='%R%s(zCmd)'>%s(zCmd)</a>" page:</h1> */
@@ -262,10 +263,12 @@
262 @ </blockquote>
263 }
264 }
265 }else{
266 int i, j, n;
 
 
267
268 @ <h1>Available commands:</h1>
269 @ <table border="0"><tr>
270 for(i=j=0; i<MX_COMMAND; i++){
271 const char *z = aCommand[i].zName;
272
--- src/dispatch.c
+++ src/dispatch.c
@@ -233,14 +233,15 @@
233 */
234 void help_page(void){
235 const char *zCmd = P("cmd");
236
237 if( zCmd==0 ) zCmd = P("name");
 
238 if( zCmd ){
239 int rc;
240 const CmdOrPage *pCmd = 0;
241
242 style_header("Help: %s", zCmd);
243
244 style_submenu_element("Command-List", "%s/help", g.zTop);
245 if( *zCmd=='/' ){
246 /* Some of the webpages require query parameters in order to work.
247 ** @ <h1>The "<a href='%R%s(zCmd)'>%s(zCmd)</a>" page:</h1> */
@@ -262,10 +263,12 @@
263 @ </blockquote>
264 }
265 }
266 }else{
267 int i, j, n;
268
269 style_header("Help");
270
271 @ <h1>Available commands:</h1>
272 @ <table border="0"><tr>
273 for(i=j=0; i<MX_COMMAND; i++){
274 const char *z = aCommand[i].zName;
275

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button