Differences From Artifact [ec1f2f7bd9]:
- File
src/main.c
— part of check-in
[06ba3ace24]
at
2012-09-04 08:14:03
on branch trunk
— memory allocated with mprintf should be freed with fossil_free(), not free()
use _wsystem() in stead of system() on Windows.
Use g.argv[0] in stead of fossil_nameofexec() when the full path is not necessary, e.g for "Usage" prints.
(user: jan.nijtmans size: 56757)
To Artifact [f9e487efbb]:
- File src/main.c — part of check-in [41c3c1900b] at 2012-09-05 20:45:30 on branch trunk — Enhancements to localtime processing and to the label resolution on the a=, b=, and c= query parameters to the timeline page. (user: drh size: 56867)
| ︙ | |||
477 478 479 480 481 482 483 484 485 486 487 488 489 490 | 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 | + + |
g.fSqlStats = find_option("sqlstats", 0, 0)!=0;
g.fSystemTrace = find_option("systemtrace", 0, 0)!=0;
if( g.fSqlTrace ) g.fSqlStats = 1;
g.fSqlPrint = find_option("sqlprint", 0, 0)!=0;
g.fHttpTrace = find_option("httptrace", 0, 0)!=0;
g.zLogin = find_option("user", "U", 1);
g.zSSLIdentity = find_option("ssl-identity", 0, 1);
if( find_option("utc",0,0) ) g.fTimeFormat = 1;
if( find_option("localtime",0,0) ) g.fTimeFormat = 2;
if( zChdir && chdir(zChdir) ){
fossil_fatal("unable to change directories to %s", zChdir);
}
if( find_option("help",0,0)!=0 ){
/* --help anywhere on the command line is translated into
** "fossil help argv[1] argv[2]..." */
int i;
|
| ︙ |