Fossil SCM

Make -? an alias for -help. To the best of mine and grep's knowledge, this does not collide with a -? flag in any commands.

stephan 2025-11-15 07:51 trunk
Commit 30eb891227b43816c0b96f00bab02d803458dd75dff7cd4560defd872d0f5b63
1 file changed +1 -1
+1 -1
--- src/main.c
+++ src/main.c
@@ -854,11 +854,11 @@
854854
fossil_fatal("unable to change directories to %s", zChdir);
855855
}
856856
#if USE_SEE
857857
db_maybe_handle_saved_encryption_key_for_process(SEE_KEY_READ);
858858
#endif
859
- if( find_option("help",0,0)!=0 ){
859
+ if( find_option("help","?",0)!=0 ){
860860
/* If --help is found anywhere on the command line, translate the command
861861
* to "fossil help cmdname" where "cmdname" is the first argument that
862862
* does not begin with a "-" character. If all arguments start with "-",
863863
* translate to "fossil help argv[1] argv[2]...". */
864864
int i, nNewArgc;
865865
--- src/main.c
+++ src/main.c
@@ -854,11 +854,11 @@
854 fossil_fatal("unable to change directories to %s", zChdir);
855 }
856 #if USE_SEE
857 db_maybe_handle_saved_encryption_key_for_process(SEE_KEY_READ);
858 #endif
859 if( find_option("help",0,0)!=0 ){
860 /* If --help is found anywhere on the command line, translate the command
861 * to "fossil help cmdname" where "cmdname" is the first argument that
862 * does not begin with a "-" character. If all arguments start with "-",
863 * translate to "fossil help argv[1] argv[2]...". */
864 int i, nNewArgc;
865
--- src/main.c
+++ src/main.c
@@ -854,11 +854,11 @@
854 fossil_fatal("unable to change directories to %s", zChdir);
855 }
856 #if USE_SEE
857 db_maybe_handle_saved_encryption_key_for_process(SEE_KEY_READ);
858 #endif
859 if( find_option("help","?",0)!=0 ){
860 /* If --help is found anywhere on the command line, translate the command
861 * to "fossil help cmdname" where "cmdname" is the first argument that
862 * does not begin with a "-" character. If all arguments start with "-",
863 * translate to "fossil help argv[1] argv[2]...". */
864 int i, nNewArgc;
865

Keyboard Shortcuts

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