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.
Commit
30eb891227b43816c0b96f00bab02d803458dd75dff7cd4560defd872d0f5b63
Parent
96fab06a2237c5e…
1 file changed
+1
-1
+1
-1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -854,11 +854,11 @@ | ||
| 854 | 854 | fossil_fatal("unable to change directories to %s", zChdir); |
| 855 | 855 | } |
| 856 | 856 | #if USE_SEE |
| 857 | 857 | db_maybe_handle_saved_encryption_key_for_process(SEE_KEY_READ); |
| 858 | 858 | #endif |
| 859 | - if( find_option("help",0,0)!=0 ){ | |
| 859 | + if( find_option("help","?",0)!=0 ){ | |
| 860 | 860 | /* If --help is found anywhere on the command line, translate the command |
| 861 | 861 | * to "fossil help cmdname" where "cmdname" is the first argument that |
| 862 | 862 | * does not begin with a "-" character. If all arguments start with "-", |
| 863 | 863 | * translate to "fossil help argv[1] argv[2]...". */ |
| 864 | 864 | int i, nNewArgc; |
| 865 | 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)!=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 |