Differences From:
File
src/main.c
part of check-in
[d5695157d0]
- Deal with windows filename aliasing in the "all" command.
Ticket 974618fe5a8. Also display the home directory for windows
users with the "info" command since the home directory is non-obvious
in windows.
by
drh on
2009-11-11 16:21:19.
[view]
To:
File
src/main.c
part of check-in
[dccd27c6da]
- Added a global command line argument named -quiet.
This will suppress some output (currently during sync) for those interfacing fossil with various development tools.
It does not make eliminate all output, only the output that is meant for fancy display to the user on a console. You
can now use this new flag anywhere by referencing if (!g.fQuiet) {...}
by
jeremy_c on
2009-12-14 23:18:54.
[view]
@@ -68,8 +68,9 @@
char *zLocalRoot; /* The directory holding the local database */
int minPrefix; /* Number of digits needed for a distinct UUID */
int fSqlTrace; /* True if -sqltrace flag is present */
int fSqlPrint; /* True if -sqlprint flag is present */
+ int fQuiet; /* True if -quiet flag is present */
int fHttpTrace; /* Trace outbound HTTP requests */
int fNoSync; /* Do not do an autosync even. --nosync */
char *zPath; /* Name of webpage being served */
char *zExtra; /* Extra path information past the webpage name */
@@ -233,8 +234,9 @@
}else if( argc<2 ){
fprintf(stderr, "Usage: %s COMMAND ...\n", argv[0]);
exit(1);
}else{
+ g.fQuiet = find_option("quiet", 0, 0)!=0;
g.fSqlTrace = find_option("sqltrace", 0, 0)!=0;
g.fSqlPrint = find_option("sqlprint", 0, 0)!=0;
g.fHttpTrace = find_option("httptrace", 0, 0)!=0;
g.zLogin = find_option("user", "U", 1);