Index: src/dispatch.c ================================================================== --- src/dispatch.c +++ src/dispatch.c @@ -532,45 +532,14 @@ blob_append(pText, zHelp, i); } } /* -** COMMAND: test-all-help -** -** Usage: %fossil test-all-help ?OPTIONS? -** -** Show help text for commands and pages. Useful for proof-reading. -** Defaults to just the CLI commands. Specify --www to see only the -** web pages, or --everything to see both commands and pages. -** -** Options: -** -e|--everything Show all commands and pages. -** -t|--test Include test- commands -** -w|--www Show WWW pages. -** -s|--settings Show settings. -** -h|--html Transform output to HTML. -** -r|--raw No output formatting. +** Display help for all commands based on provided flags. */ -void test_all_help_cmd(void){ +static void display_all_help(int mask, int useHtml, int rawOut){ int i; - int mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER; - int useHtml = find_option("html","h",0)!=0; - int rawOut = find_option("raw","r",0)!=0; - - if( find_option("www","w",0) ){ - mask = CMDFLAG_WEBPAGE; - } - if( find_option("everything","e",0) ){ - mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER | CMDFLAG_WEBPAGE | - CMDFLAG_SETTING | CMDFLAG_TEST; - } - if( find_option("settings","s",0) ){ - mask = CMDFLAG_SETTING; - } - if( find_option("test","t",0) ){ - mask |= CMDFLAG_TEST; - } if( useHtml ) fossil_print("