Fossil

Check-in [05cde4f8eb]
Login

Check-in [05cde4f8eb]

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

Overview
Comment:Removed a debugging-only function.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | double-dash-flag2
Files: files | file ages | folders
SHA3-256: 05cde4f8eb04e987a3531a5f13e4229566ed0f5edad16a59c31a5874211da060
User & Date: stephan 2019-10-02 16:14:55.745
Context
2019-10-03
15:19
Clarified a falsehood in the new verify_all_options() docs. ... (check-in: 6edf8bcd9a user: stephan tags: double-dash-flag2)
13:38
If verify_all_options() is called more than once, ignore the second invocation because it won't work as expected anyway as the first invocation has already tossed out the ability to pass in arguments that might be consumed by the second caller. Moving because apparently some subcommands may actually need to call this a second time, in which case I suppose we need to "define" its behavior. ... (Closed-Leaf check-in: cd969ec5da user: andybradford tags: mistake)
2019-10-02
16:14
Removed a debugging-only function. ... (check-in: 05cde4f8eb user: stephan tags: double-dash-flag2)
16:14
Much simplified re-implementation of [double-dash-flag] without the unconventional '-' alias behaviour. (Still requires more testing.) ... (check-in: c32966e0de user: stephan tags: double-dash-flag2)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/main.c.
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
        fossil_fatal(
          "unrecognized command-line option or missing argument: %s",
          arg);
      }
    }
  }
}
/*
 ** Only for debugging during "--"-related refactoring. To be deleted
 ** before merging with trunk.
 */
void dump_g_argv(){
  int i;
  for( i = 0; i < g.argc; ++i ){
    fossil_print("\tg.argv[%d] = %s\n", i, g.argv[i]);
  }
}

/*
** This function returns a human readable version string.
*/
const char *get_version(){
  static const char version[] = RELEASE_VERSION " " MANIFEST_VERSION " "
                                MANIFEST_DATE " UTC";







<
<
<
<
<
<
<
<
<
<







1060
1061
1062
1063
1064
1065
1066










1067
1068
1069
1070
1071
1072
1073
        fossil_fatal(
          "unrecognized command-line option or missing argument: %s",
          arg);
      }
    }
  }
}











/*
** This function returns a human readable version string.
*/
const char *get_version(){
  static const char version[] = RELEASE_VERSION " " MANIFEST_VERSION " "
                                MANIFEST_DATE " UTC";