Fossil SCM

Swap single-/double-dash convention in [fossil help help] listing to match the other commands. Use single-dash for single-letter option names and double-dash for long option names. (Truth is that either is accepted; this is merely a display issue.)

andygoth 2015-03-05 19:51 trunk
Commit 03e1850bf12d6bdd4e3d9fc4e4001f03ac3a6001
1 file changed +5 -5
+5 -5
--- src/main.c
+++ src/main.c
@@ -1047,20 +1047,20 @@
10471047
10481048
/*
10491049
** COMMAND: help
10501050
**
10511051
** Usage: %fossil help COMMAND
1052
-** or: %fossil COMMAND -help
1052
+** or: %fossil COMMAND --help
10531053
**
10541054
** Display information on how to use COMMAND. To display a list of
10551055
** available commands one of:
10561056
**
10571057
** %fossil help Show common commands
1058
-** %fossil help --a|-all Show both common and auxiliary commands
1059
-** %fossil help --t|-test Show test commands only
1060
-** %fossil help --x|-aux Show auxiliary commands only
1061
-** %fossil help --w|-www Show list of WWW pages
1058
+** %fossil help -a|--all Show both common and auxiliary commands
1059
+** %fossil help -t|--test Show test commands only
1060
+** %fossil help -x|--aux Show auxiliary commands only
1061
+** %fossil help -w|--www Show list of WWW pages
10621062
*/
10631063
void help_cmd(void){
10641064
int rc, idx, isPage = 0;
10651065
const char *z;
10661066
const char *zCmdOrPage;
10671067
--- src/main.c
+++ src/main.c
@@ -1047,20 +1047,20 @@
1047
1048 /*
1049 ** COMMAND: help
1050 **
1051 ** Usage: %fossil help COMMAND
1052 ** or: %fossil COMMAND -help
1053 **
1054 ** Display information on how to use COMMAND. To display a list of
1055 ** available commands one of:
1056 **
1057 ** %fossil help Show common commands
1058 ** %fossil help --a|-all Show both common and auxiliary commands
1059 ** %fossil help --t|-test Show test commands only
1060 ** %fossil help --x|-aux Show auxiliary commands only
1061 ** %fossil help --w|-www Show list of WWW pages
1062 */
1063 void help_cmd(void){
1064 int rc, idx, isPage = 0;
1065 const char *z;
1066 const char *zCmdOrPage;
1067
--- src/main.c
+++ src/main.c
@@ -1047,20 +1047,20 @@
1047
1048 /*
1049 ** COMMAND: help
1050 **
1051 ** Usage: %fossil help COMMAND
1052 ** or: %fossil COMMAND --help
1053 **
1054 ** Display information on how to use COMMAND. To display a list of
1055 ** available commands one of:
1056 **
1057 ** %fossil help Show common commands
1058 ** %fossil help -a|--all Show both common and auxiliary commands
1059 ** %fossil help -t|--test Show test commands only
1060 ** %fossil help -x|--aux Show auxiliary commands only
1061 ** %fossil help -w|--www Show list of WWW pages
1062 */
1063 void help_cmd(void){
1064 int rc, idx, isPage = 0;
1065 const char *z;
1066 const char *zCmdOrPage;
1067

Keyboard Shortcuts

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