Fossil

Check-in [30eb891227]
Login

Check-in [30eb891227]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make -? an alias for -help. To the best of mine and grep's knowledge, this does not collide with a -? flag in any commands.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 30eb891227b43816c0b96f00bab02d803458dd75dff7cd4560defd872d0f5b63
User & Date: stephan 2025-11-15 07:51:23.876
Context
2025-11-15
12:32
Document the new -? alias for --help. ... (check-in: ce13c6735e user: danield tags: trunk)
07:51
Make -? an alias for -help. To the best of mine and grep's knowledge, this does not collide with a -? flag in any commands. ... (check-in: 30eb891227 user: stephan tags: trunk)
2025-11-14
22:09
Retain the "name" query parameter in hidden parameters if it does not comes from the extra path component; adapted from suggested change in [forum:/forumpost/e2e9aebc4db4420e|forum post e2e9aebc4db4420e]. ... (check-in: 96fab06a22 user: andybradford tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/main.c.
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
    if( find_option("localtime",0,0) ) g.fTimeFormat = 2;
    if( zChdir && file_chdir(zChdir, 0) ){
      fossil_fatal("unable to change directories to %s", zChdir);
    }
#if USE_SEE
    db_maybe_handle_saved_encryption_key_for_process(SEE_KEY_READ);
#endif
    if( find_option("help",0,0)!=0 ){
      /* If --help is found anywhere on the command line, translate the command
       * to "fossil help cmdname" where "cmdname" is the first argument that
       * does not begin with a "-" character.  If all arguments start with "-",
       * translate to "fossil help argv[1] argv[2]...". */
      int i, nNewArgc;
      char **zNewArgv = fossil_malloc( sizeof(char*)*(g.argc+3) );
      zNewArgv[0] = g.argv[0];







|







852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
    if( find_option("localtime",0,0) ) g.fTimeFormat = 2;
    if( zChdir && file_chdir(zChdir, 0) ){
      fossil_fatal("unable to change directories to %s", zChdir);
    }
#if USE_SEE
    db_maybe_handle_saved_encryption_key_for_process(SEE_KEY_READ);
#endif
    if( find_option("help","?",0)!=0 ){
      /* If --help is found anywhere on the command line, translate the command
       * to "fossil help cmdname" where "cmdname" is the first argument that
       * does not begin with a "-" character.  If all arguments start with "-",
       * translate to "fossil help argv[1] argv[2]...". */
      int i, nNewArgc;
      char **zNewArgv = fossil_malloc( sizeof(char*)*(g.argc+3) );
      zNewArgv[0] = g.argv[0];