Browse code

Updating help strings, to include a couple missing items as well as copyrights. updating man page files as well.

Micah Snyder authored on 2018/02/07 06:23:07
Showing 14 changed files
... ...
@@ -1,5 +1,5 @@
1 1
 /*
2
- *  Copyright (C) 2015 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
2
+ *  Copyright (C) 2015, 2018 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
3 3
  *  Copyright (C) 2008 Sourcefire, Inc.
4 4
  *
5 5
  *  Author: aCaB <acab@clamav.net>
... ...
@@ -122,10 +122,17 @@ int main(int argc, char **argv) {
122 122
     }
123 123
 
124 124
     if(optget(opts, "help")->enabled) {
125
-	printf("Usage: %s [-c <config-file>]\n\n", argv[0]);
125
+    printf("\n");
126
+    printf("                       Clam AntiVirus: Milter Mail Scanner %s\n", get_version());
127
+    printf("           By The ClamAV Team: http://www.clamav.net/about.html#credits\n");
128
+    printf("           (C) 2009-2018 Cisco Systems, Inc.\n");
129
+    printf("\n");
130
+	printf("    %s [-c <config-file>]\n\n", argv[0]);
131
+    printf("\n");
126 132
 	printf("    --help                   -h       Show this help\n");
127
-	printf("    --version                -V       Show version and exit\n");
128
-	printf("    --config-file <file>     -c       Read configuration from file\n\n");
133
+	printf("    --version                -V       Show version\n");
134
+	printf("    --config-file <file>     -c       Read configuration from file\n");
135
+    printf("\n");
129 136
 	optfree(opts);
130 137
 	return 0;
131 138
     }
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  *  ClamAV bytecode handler tool.
3 3
  *
4
- *  Copyright (C) 2015 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
4
+ *  Copyright (C) 2015, 2018 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
5 5
  *  Copyright (C) 2009-2012 Sourcefire, Inc.
6 6
  *
7 7
  *  Authors: Török Edvin
... ...
@@ -48,12 +48,13 @@
48 48
 static void help(void)
49 49
 {
50 50
     printf("\n");
51
-    printf("           Clam AntiVirus: Bytecode Testing Tool %s\n",
52
-	   get_version());
51
+    printf("                       Clam AntiVirus: Bytecode Testing Tool %s\n", get_version());
53 52
     printf("           By The ClamAV Team: http://www.clamav.net/about.html#credits\n");
54
-    printf("           (C) 2009-2015 Cisco Systems, Inc.\n\n");
55
-    printf("clambc <file> [function] [param1 ...]\n\n");
56
-    printf("    --help                 -h         Show help\n");
53
+    printf("           (C) 2009-2018 Cisco Systems, Inc.\n");
54
+    printf("\n");
55
+    printf("    clambc <file> [function] [param1 ...]\n");
56
+    printf("\n");
57
+    printf("    --help                 -h         Show this help\n");
57 58
     printf("    --version              -V         Show version\n");
58 59
     printf("    --debug                           Show debug\n");
59 60
     printf("    --force-interpreter    -f         Force using the interpreter instead of the JIT\n");
... ...
@@ -61,10 +62,11 @@ static void help(void)
61 61
     printf("    --info                 -i         Print information about bytecode\n");
62 62
     printf("    --printsrc             -p         Print bytecode source\n");
63 63
     printf("    --printbcir            -c         Print IR of bytecode signature\n");
64
+    printf("    --input                -c         Input file to run the bytecode on\n");
64 65
     printf("    --trace <level>        -T         Set bytecode trace level 0..7 (default 7)\n");
65 66
     printf("    --no-trace-showsource  -s         Don't show source line during tracing\n");
66 67
     printf("    --statistics=bytecode             Collect and print bytecode execution statistics\n");
67
-    printf("    file                              file to test\n");
68
+    printf("    file                              File to test\n");
68 69
     printf("\n");
69 70
     return;
70 71
 }
... ...
@@ -1,5 +1,5 @@
1 1
 /*
2
- *  Copyright (C) 2015 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
2
+ *  Copyright (C) 2015, 2018 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
3 3
  *  Copyright (C) 2009-2013 Sourcefire, Inc.
4 4
  *  Author: Tomasz Kojm <tkojm@clamav.net>
5 5
  *
... ...
@@ -200,11 +200,11 @@ static int printconf(const char *name)
200 200
 static void help(void)
201 201
 {
202 202
     printf("\n");
203
-    printf("           Clam AntiVirus: Configuration Tool %s\n", get_version());
203
+    printf("                       Clam AntiVirus: Configuration Tool %s\n", get_version());
204 204
     printf("           By The ClamAV Team: http://www.clamav.net/about.html#credits\n");
205
-    printf("           (C) 2009-2015 Cisco Systems, Inc.\n\n");
206
-
207
-    printf("    --help                 -h         Show help\n");
205
+    printf("           (C) 2009-2018 Cisco Systems, Inc.\n");
206
+    printf("\n");
207
+    printf("    --help                 -h         Show this help\n");
208 208
     printf("    --version              -V         Show version\n");
209 209
     printf("    --config-dir=DIR       -c DIR     Read configuration files from DIR\n");
210 210
     printf("    --non-default          -n         Only display non-default settings\n");
... ...
@@ -1,5 +1,5 @@
1 1
 /*
2
- *  Copyright (C) 2015 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
2
+ *  Copyright (C) 2015, 2018 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
3 3
  *  Copyright (C) 2007-2009 Sourcefire, Inc.
4 4
  *
5 5
  *  Authors: Tomasz Kojm
... ...
@@ -82,14 +82,19 @@ int is_valid_hostid(void);
82 82
 static void help(void)
83 83
 {
84 84
     printf("\n");
85
-    printf("                      Clam AntiVirus Daemon %s\n", get_version());
85
+    printf("                      Clam AntiVirus: Daemon %s\n", get_version());
86 86
     printf("           By The ClamAV Team: http://www.clamav.net/about.html#credits\n");
87
-    printf("           (C) 2007-2017 Cisco Systems, Inc.\n\n");
88
-
89
-    printf("    --help                   -h             Show this help.\n");
90
-    printf("    --version                -V             Show version number.\n");
91
-    printf("    --debug                                 Enable debug mode.\n");
92
-    printf("    --config-file=FILE       -c FILE        Read configuration from FILE.\n\n");
87
+    printf("           (C) 2007-2018 Cisco Systems, Inc.\n");
88
+    printf("\n");
89
+    printf("    clamd [options]\n");
90
+    printf("\n");
91
+    printf("    --help                   -h             Show this help\n");
92
+    printf("    --version                -V             Show version number\n");
93
+    printf("    --debug                                 Enable debug mode\n");
94
+    printf("    --config-file=FILE       -c FILE        Read configuration from FILE\n");
95
+    printf("\n");
96
+    printf("Pass in - as the filename for stdin.\n");
97
+    printf("\n");
93 98
 }
94 99
 
95 100
 static struct optstruct *opts;
... ...
@@ -1,5 +1,5 @@
1 1
 /*
2
- *  Copyright (C) 2015 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
2
+ *  Copyright (C) 2015, 2018 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
3 3
  *  Copyright (C) 2007-2009 Sourcefire, Inc.
4 4
  *
5 5
  *  Authors: Tomasz Kojm, aCaB
... ...
@@ -179,15 +179,16 @@ int main(int argc, char **argv)
179 179
 
180 180
 void help(void)
181 181
 {
182
-
183 182
     mprintf_stdout = 1;
184 183
 
185 184
     mprintf("\n");
186
-    mprintf("                       ClamAV Daemon Client %s\n", get_version());
187
-    printf("           By The ClamAV Team: http://www.clamav.net/about.html#credits\n");
188
-    printf("           (C) 2007-2017 Cisco Systems, Inc.\n\n");
189
-
190
-    mprintf("    --help              -h             Show help\n");
185
+    mprintf("                      Clam AntiVirus: Daemon Client %s\n", get_version());
186
+    mprintf("           By The ClamAV Team: http://www.clamav.net/about.html#credits\n");
187
+    mprintf("           (C) 2007-2018 Cisco Systems, Inc.\n");
188
+    mprintf("\n");
189
+    mprintf("    clamdscan [options] [file/directory/-]\n");
190
+    mprintf("\n");
191
+    mprintf("    --help              -h             Show this help\n");
191 192
     mprintf("    --version           -V             Print version number and exit\n");
192 193
     mprintf("    --verbose           -v             Be verbose\n");
193 194
     mprintf("    --quiet                            Be quiet, only output error messages\n");
... ...
@@ -1233,16 +1233,18 @@ static void sigint(int a)
1233 1233
 static void help(void)
1234 1234
 {
1235 1235
     printf("\n");
1236
-    printf("           Clam AntiVirus: Monitoring Tool %s\n", get_version());
1236
+    printf("                       Clam AntiVirus: Monitoring Tool %s\n", get_version());
1237 1237
     printf("           By The ClamAV Team: http://www.clamav.net/about.html#credits\n");
1238
-    printf("           (C) 2008-2017 Cisco Systems, Inc.\n\n");
1239
-    printf("clamdtop [-hVc] [host[:port] /path/to/clamd.socket ...]\n\n");
1240
-    printf("    --help                 -h         Show help\n");
1238
+    printf("           (C) 2008-2018 Cisco Systems, Inc.\n");
1239
+    printf("\n");
1240
+    printf("    clamdtop [-hVc] [host[:port] /path/to/clamd.socket ...]\n");
1241
+    printf("\n");
1242
+    printf("    --help                 -h         Show this help\n");
1241 1243
     printf("    --version              -V         Show version\n");
1242 1244
     printf("    --config-file=FILE     -c FILE    Read clamd's configuration files from FILE\n");
1243
-    printf("    --defaultcolors	       -d	  Use default terminal colors\n");
1244
-    printf("	host[:port]			  Connect to clamd on host at port (default 3310)\n");
1245
-    printf("    /path/to/clamd.socket		  Connect to clamd over a local socket\n");
1245
+    printf("    --defaultcolors	       -d         Use default terminal colors\n");
1246
+    printf("    host[:port]                       Connect to clamd on host at port (default 3310)\n");
1247
+    printf("    /path/to/clamd.socket             Connect to clamd over a local socket\n");
1246 1248
     printf("\n");
1247 1249
     return;
1248 1250
 }
... ...
@@ -1,5 +1,5 @@
1 1
 /*
2
- *  Copyright (C) 2015, 2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
2
+ *  Copyright (C) 2015, 2017-2018 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
3 3
  *  Copyright (C) 2007-2012 Sourcefire, Inc.
4 4
  *
5 5
  *  Authors: Tomasz Kojm
... ...
@@ -197,15 +197,16 @@ int main(int argc, char **argv)
197 197
 
198 198
 void help(void)
199 199
 {
200
-
201 200
     mprintf_stdout = 1;
202 201
 
203 202
     mprintf("\n");
204
-    mprintf("                       Clam AntiVirus Scanner %s\n", get_version());
203
+    mprintf("                       Clam AntiVirus: Scanner %s\n", get_version());
205 204
     printf("           By The ClamAV Team: http://www.clamav.net/about.html#credits\n");
206
-    printf("           (C) 2007-2017 Cisco Systems, Inc.\n\n");
207
-
208
-    mprintf("    --help                -h             Print this help screen\n");
205
+    printf("           (C) 2007-2018 Cisco Systems, Inc.\n");
206
+    mprintf("\n");
207
+    mprintf("    clamscan [options] [file/directory/-]\n");
208
+    mprintf("\n");
209
+    mprintf("    --help                -h             Show this help\n");
209 210
     mprintf("    --version             -V             Print version number\n");
210 211
     mprintf("    --verbose             -v             Be verbose\n");
211 212
     mprintf("    --archive-verbose     -a             Show filenames inside scanned archives\n");
... ...
@@ -219,8 +220,9 @@ void help(void)
219 219
     mprintf("\n");
220 220
     mprintf("    --tempdir=DIRECTORY                  Create temporary files in DIRECTORY\n");
221 221
     mprintf("    --leave-temps[=yes/no(*)]            Do not remove temporary files\n");
222
-    mprintf("    --database=FILE/DIR   -d FILE/DIR    Load virus database from FILE or load\n");
223
-    mprintf("                                         all supported db files from DIR\n");
222
+    mprintf("    --gen-json[=yes/no(*)]               Generate JSON description of scanned file(s). JSON will be printed and also-\n");
223
+    mprintf("                                         dropped to the temp directory if --leave-temps is enabled.\n");
224
+    mprintf("    --database=FILE/DIR   -d FILE/DIR    Load virus database from FILE or load all supported db files from DIR\n");
224 225
     mprintf("    --official-db-only[=yes/no(*)]       Only load official signatures\n");
225 226
     mprintf("    --log=FILE            -l FILE        Save scan report to FILE\n");
226 227
     mprintf("    --recursive[=yes/no(*)]  -r          Scan subdirectories recursively\n");
... ...
@@ -252,11 +254,11 @@ void help(void)
252 252
     mprintf("    --phishing-sigs[=yes(*)/no]          Signature-based phishing detection\n");
253 253
     mprintf("    --phishing-scan-urls[=yes(*)/no]     URL-based phishing detection\n");
254 254
     mprintf("    --heuristic-scan-precedence[=yes/no(*)] Stop scanning as soon as a heuristic match is found\n");
255
-    mprintf("    --phishing-ssl[=yes/no(*)]           Always block SSL mismatches in URLs (phishing module)\n");
256
-    mprintf("    --phishing-cloak[=yes/no(*)]         Always block cloaked URLs (phishing module)\n");
257
-    mprintf("    --partition-intersection[=yes/no(*)] Detect partition intersections in raw disk images using heuristics.\n");
255
+    mprintf("    --phishing-ssl[=yes/no(*)]           Always block (flag) SSL mismatches in URLs (phishing module)\n");
256
+    mprintf("    --phishing-cloak[=yes/no(*)]         Always block (flag) cloaked URLs (phishing module)\n");
257
+    mprintf("    --partition-intersection[=yes/no(*)] Detect partition intersections in raw disk images using heuristics\n");
258 258
     mprintf("    --algorithmic-detection[=yes(*)/no]  Algorithmic detection\n");
259
-    mprintf("    --normalize[=yes(*)/no]              Normalize html, script, and text files. Use normalize=no for yara compatibility.\n");
259
+    mprintf("    --normalize[=yes(*)/no]              Normalize html, script, and text files. Use normalize=no for yara compatibility\n");
260 260
     mprintf("    --scan-pe[=yes(*)/no]                Scan PE files\n");
261 261
     mprintf("    --scan-elf[=yes(*)/no]               Scan ELF files\n");
262 262
     mprintf("    --scan-ole2[=yes(*)/no]              Scan OLE2 containers\n");
... ...
@@ -267,8 +269,9 @@ void help(void)
267 267
     mprintf("    --scan-hwp3[=yes(*)/no]              Scan HWP3 files\n");
268 268
     mprintf("    --scan-archive[=yes(*)/no]           Scan archive files (supported by libclamav)\n");
269 269
     mprintf("    --detect-broken[=yes/no(*)]          Try to detect broken executable files\n");
270
-    mprintf("    --block-encrypted[=yes/no(*)]        Block encrypted archives\n");
271
-    mprintf("    --block-macros[=yes/no(*)]           Block OLE2 files with VBA macros\n");
270
+    mprintf("    --block-encrypted[=yes/no(*)]        Block (flag) encrypted archives\n");
271
+    mprintf("    --block-macros[=yes/no(*)]           Block (flag) OLE2 files with VBA macros\n");
272
+    mprintf("    --block-max[=yes/no(*)]              Block (flag) files that exceed max file size, max scan size, or max recursion limit\n");
272 273
     mprintf("    --nocerts                            Disable authenticode certificate chain verification in PE files\n");
273 274
     mprintf("    --dumpcerts                          Dump authenticode certificate chain in PE files\n");
274 275
     mprintf("\n");
... ...
@@ -292,6 +295,8 @@ void help(void)
292 292
 #endif /* HAVE_PCRE */
293 293
     mprintf("    --disable-cache                      Disable caching and cache checks for hash sums of scanned files.\n");
294 294
     mprintf("\n");
295
+    mprintf("Pass in - as the filename for stdin.\n");
296
+    mprintf("\n");
295 297
     mprintf("(*) Default scan settings\n");
296 298
     mprintf("(**) Certain files (e.g. documents, archives, etc.) may in turn contain other\n");
297 299
     mprintf("   files inside. The above options ensure safe processing of this kind of data.\n\n");
... ...
@@ -29,16 +29,22 @@ typedef struct _write_data {
29 29
 
30 30
 void usage(char *name)
31 31
 {
32
-    fprintf(stderr, "USAGE: %s -hHinpVv?\n", name);
33
-    fprintf(stderr, "OPTIONS:\n");
34
-    fprintf(stderr, "    -e [EMAIL]\tYour email address (required)\n");
35
-    fprintf(stderr, "    -h or -?\tShow the help text\n");
36
-    fprintf(stderr, "    -n [FILE]\tSubmit a false negative (FN)\n");
37
-    fprintf(stderr, "    -N [NAME]\tYour name contained in quotation marks (required)\n");
38
-    fprintf(stderr, "    -p [FILE]\tSubmit a false positive (FP)\n");
39
-    fprintf(stderr, "    -V [NAME] \tDetected virus name(required with -p)\n");
40
-    fprintf(stderr, "    -v\t\tShow version number and exit\n");
41
-    fprintf(stderr, "You must specify -n or -p. Both are mutually exclusive. Pass in - as the filename for stdin.\n");
32
+    printf("\n");
33
+    printf("                       Clam AntiVirus: Monitoring Tool %s\n", get_version());
34
+    printf("           By The ClamAV Team: http://www.clamav.net/about.html#credits\n");
35
+    printf("           (C) 2008-2018 Cisco Systems, Inc.\n");
36
+    printf("\n");
37
+    printf("    %s -hHinpVv?\n", name);
38
+    printf("\n");
39
+    printf("    -h or -?                  Show this help\n");
40
+    printf("    -v                        Show version\n");
41
+    printf("    -e [EMAIL]                Your email address (required)\n");
42
+    printf("    -n [FILE/-]               Submit a false negative (FN)\n");
43
+    printf("    -N [NAME]                 Your name contained in quotation marks (required)\n");
44
+    printf("    -p [FILE/-]               Submit a false positive (FP)\n");
45
+    printf("    -V [VIRUS]                Detected virus name (required with -p)\n");
46
+    printf("\n");
47
+    printf("You must specify -n or -p. Both are mutually exclusive. Pass in - as the filename for stdin.\n\n");
42 48
     exit(0);
43 49
 }
44 50
 
... ...
@@ -1,4 +1,4 @@
1
-.TH "clamav-milter.conf" "5" "February 12, 2007" "ClamAV @VERSION@" "Clam AntiVirus"
1
+.TH "clamav-milter.conf" "5" "Feb 25, 2009" "ClamAV @VERSION@" "Clam AntiVirus"
2 2
 .SH "NAME"
3 3
 .LP 
4 4
 \fBclamav-milter.conf\fR \- Configuration file for clamav-milter
... ...
@@ -52,4 +52,4 @@ By The ClamAV Team: http://www.clamav.net/about.html#credits
52 52
 .LP
53 53
 (C) 2009-2013 Sourcefire, Inc.
54 54
 .LP
55
-(C) 2014 Cisco Systems, Inc. All Rights Reserved
55
+(C) 2014-2018 Cisco Systems, Inc. All Rights Reserved
... ...
@@ -51,6 +51,9 @@ Create temporary files in DIRECTORY. Directory must be writable for the '@CLAMAV
51 51
 \fB\-\-leave\-temps\fR
52 52
 Do not remove temporary files.
53 53
 .TP 
54
+\fB\-\-gen\-json\fR
55
+Generate JSON description of scanned file(s). JSON will be printed and also dropped to the temp directory if --leave-temps is enabled.
56
+.TP 
54 57
 \fB\-d FILE/DIR, \-\-database=FILE/DIR\fR
55 58
 Load virus database from FILE or load all virus database files from DIR.
56 59
 .TP 
... ...
@@ -33,6 +33,9 @@ Don't print and log warnings.
33 33
 \fB\-\-stdout\fR
34 34
 Write all messages to stdout.
35 35
 .TP 
36
+\fB\-\-show\-progress\fR
37
+Show download progress percentage.
38
+.TP 
36 39
 \fB\-\-config\-file=FILE
37 40
 Read configuration from FILE.
38 41
 .TP
... ...
@@ -145,67 +145,41 @@ help (void)
145 145
 {
146 146
     mprintf_stdout = 1;
147 147
 
148
-    mprintf 
149
-        ("\n");
150
-    mprintf 
151
-        ("                   Clam AntiVirus: freshclam  %s\n", get_version ());
152
-    printf 
153
-        ("           By The ClamAV Team: http://www.clamav.net/about.html#credits\n");
154
-    printf 
155
-        ("           (C) 2007-2017 Cisco Systems, Inc.\n\n");
156
-    mprintf 
157
-        ("    --help               -h              show help\n");
158
-    mprintf
159
-        ("    --version            -V              print version number and exit\n");
160
-    mprintf 
161
-        ("    --verbose            -v              be verbose\n");
162
-    mprintf
163
-        ("    --debug                              enable debug messages\n");
164
-    mprintf
165
-        ("    --quiet                              only output error messages\n");
166
-    mprintf
167
-        ("    --no-warnings                        don't print and log warnings\n");
168
-    mprintf
169
-        ("    --stdout                             write to stdout instead of stderr\n");
170
-    mprintf
171
-        ("    --show-progress                      show download progress percentage\n");
172
-    mprintf 
173
-        ("\n");
174
-    mprintf
175
-        ("    --config-file=FILE                   read configuration from FILE.\n");
176
-    mprintf 
177
-        ("    --log=FILE           -l FILE         log into FILE\n");
148
+    mprintf("\n");
149
+    mprintf("                      Clam AntiVirus: Database Updater %s\n", get_version());
150
+    mprintf("           By The ClamAV Team: http://www.clamav.net/about.html#credits\n");
151
+    mprintf("           (C) 2007-2018 Cisco Systems, Inc.\n");
152
+    mprintf("\n");
153
+    mprintf("    freshclam [options]\n");
154
+    mprintf("\n");
155
+    mprintf("    --help               -h              Show this help\n");
156
+    mprintf("    --version            -V              Print version number and exit\n");
157
+    mprintf("    --verbose            -v              Be verbose\n");
158
+    mprintf("    --debug                              Enable debug messages\n");
159
+    mprintf("    --quiet                              Only output error messages\n");
160
+    mprintf("    --no-warnings                        Don't print and log warnings\n");
161
+    mprintf("    --stdout                             Write to stdout instead of stderr\n");
162
+    mprintf("    --show-progress                      Show download progress percentage\n");
163
+    mprintf("\n");
164
+    mprintf("    --config-file=FILE                   Read configuration from FILE.\n");
165
+    mprintf("    --log=FILE           -l FILE         Log into FILE\n");
178 166
 #ifndef _WIN32
179
-    mprintf 
180
-        ("    --daemon             -d              run in daemon mode\n");
181
-    mprintf
182
-        ("    --pid=FILE           -p FILE         save daemon's pid in FILE\n");
183
-    mprintf 
184
-        ("    --user=USER          -u USER         run as USER\n");
167
+    mprintf("    --daemon             -d              Run in daemon mode\n");
168
+    mprintf("    --pid=FILE           -p FILE         Save daemon's pid in FILE\n");
169
+    mprintf("    --user=USER          -u USER         Run as USER\n");
185 170
 #endif
186
-    mprintf
187
-        ("    --no-dns                             force old non-DNS verification method\n");
188
-    mprintf
189
-        ("    --checks=#n          -c #n           number of checks per day, 1 <= n <= 50\n");
190
-    mprintf
191
-        ("    --datadir=DIRECTORY                  download new databases into DIRECTORY\n");
171
+    mprintf("    --no-dns                             Force old non-DNS verification method\n");
172
+    mprintf("    --checks=#n          -c #n           Number of checks per day, 1 <= n <= 50\n");
173
+    mprintf("    --datadir=DIRECTORY                  Download new databases into DIRECTORY\n");
192 174
 #ifdef BUILD_CLAMD
193
-    mprintf
194
-        ("    --daemon-notify[=/path/clamd.conf]   send RELOAD command to clamd\n");
175
+    mprintf("    --daemon-notify[=/path/clamd.conf]   Send RELOAD command to clamd\n");
195 176
 #endif
196
-    mprintf
197
-        ("    --local-address=IP   -a IP           bind to IP for HTTP downloads\n");
198
-    mprintf
199
-        ("    --on-update-execute=COMMAND          execute COMMAND after successful update\n");
200
-    mprintf
201
-        ("    --on-error-execute=COMMAND           execute COMMAND if errors occurred\n");
202
-    mprintf
203
-        ("    --on-outdated-execute=COMMAND        execute COMMAND when software is outdated\n");
204
-    mprintf
205
-        ("    --list-mirrors                       print mirrors from mirrors.dat\n");
206
-    mprintf
207
-        ("    --update-db=DBNAME                   only update database DBNAME\n");
208
-
177
+    mprintf("    --local-address=IP   -a IP           Bind to IP for HTTP downloads\n");
178
+    mprintf("    --on-update-execute=COMMAND          Execute COMMAND after successful update\n");
179
+    mprintf("    --on-error-execute=COMMAND           Execute COMMAND if errors occurred\n");
180
+    mprintf("    --on-outdated-execute=COMMAND        Execute COMMAND when software is outdated\n");
181
+    mprintf("    --list-mirrors                       Print mirrors from mirrors.dat\n");
182
+    mprintf("    --update-db=DBNAME                   Only update database DBNAME\n");
209 183
     mprintf ("\n");
210 184
 }
211 185
 
... ...
@@ -1,5 +1,5 @@
1 1
 /*
2
- *  Copyright (C) 2015 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
2
+ *  Copyright (C) 2015, 2018 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
3 3
  *  Copyright (C) 2007 - 2013 Sourcefire, Inc.
4 4
  *  Copyright (C) 2002 - 2007 Tomasz Kojm <tkojm@clamav.net>
5 5
  *  CDIFF code (C) 2006 Sensory Networks, Inc.
... ...
@@ -3508,32 +3508,34 @@ static int dumpcerts(const struct optstruct *opts)
3508 3508
 static void help(void)
3509 3509
 {
3510 3510
     mprintf("\n");
3511
-    mprintf("Clam AntiVirus: Signature Tool (sigtool)  %s\n", get_version());
3512
-    mprintf("       By The ClamAV Team: http://www.clamav.net/team\n");
3513
-    mprintf("       (C) 2007-2017 Cisco Systems, Inc.\n\n");
3514
-
3515
-    mprintf("    --help                 -h              show help\n");
3516
-    mprintf("    --version              -V              print version number and exit\n");
3517
-    mprintf("    --quiet                                be quiet, output only error messages\n");
3518
-    mprintf("    --debug                                enable debug messages\n");
3519
-    mprintf("    --stdout                               write to stdout instead of stderr\n");
3520
-    mprintf("    --hex-dump                             convert data from stdin to a hex\n");
3511
+    mprintf("                      Clam AntiVirus: Signature Tool %s\n", get_version());
3512
+    mprintf("           By The ClamAV Team: http://www.clamav.net/team\n");
3513
+    mprintf("           (C) 2007-2018 Cisco Systems, Inc.\n");
3514
+    mprintf("\n");
3515
+    mprintf("    sigtool [options]\n");
3516
+    mprintf("\n");
3517
+    mprintf("    --help                 -h              Show this help\n");
3518
+    mprintf("    --version              -V              Print version number and exit\n");
3519
+    mprintf("    --quiet                                Be quiet, output only error messages\n");
3520
+    mprintf("    --debug                                Enable debug messages\n");
3521
+    mprintf("    --stdout                               Write to stdout instead of stderr\n");
3522
+    mprintf("    --hex-dump                             Convert data from stdin to a hex\n");
3521 3523
     mprintf("                                           string and print it on stdout\n");
3522
-    mprintf("    --md5 [FILES]                          generate MD5 checksum from stdin\n");
3524
+    mprintf("    --md5 [FILES]                          Generate MD5 checksum from stdin\n");
3523 3525
     mprintf("                                           or MD5 sigs for FILES\n");
3524
-    mprintf("    --sha1 [FILES]                         generate SHA1 checksum from stdin\n");
3526
+    mprintf("    --sha1 [FILES]                         Generate SHA1 checksum from stdin\n");
3525 3527
     mprintf("                                           or SHA1 sigs for FILES\n");
3526
-    mprintf("    --sha256 [FILES]                       generate SHA256 checksum from stdin\n");
3528
+    mprintf("    --sha256 [FILES]                       Generate SHA256 checksum from stdin\n");
3527 3529
     mprintf("                                           or SHA256 sigs for FILES\n");
3528
-    mprintf("    --mdb [FILES]                          generate .mdb (section hash) sigs\n");
3529
-    mprintf("    --imp [FILES]                          generate .imp (import table hash) sigs\n");
3530
-    mprintf("    --html-normalise=FILE                  create normalised parts of HTML file\n");
3531
-    mprintf("    --ascii-normalise=FILE                 create normalised text file from ascii source\n");
3532
-    mprintf("    --utf16-decode=FILE                    decode UTF16 encoded files\n");
3533
-    mprintf("    --info=FILE            -i FILE         print database information\n");
3534
-    mprintf("    --build=NAME [cvd] -b NAME             build a CVD file\n");
3530
+    mprintf("    --mdb [FILES]                          Generate .mdb (section hash) sigs\n");
3531
+    mprintf("    --imp [FILES]                          Generate .imp (import table hash) sigs\n");
3532
+    mprintf("    --html-normalise=FILE                  Create normalised parts of HTML file\n");
3533
+    mprintf("    --ascii-normalise=FILE                 Create normalised text file from ascii source\n");
3534
+    mprintf("    --utf16-decode=FILE                    Decode UTF16 encoded files\n");
3535
+    mprintf("    --info=FILE            -i FILE         Print database information\n");
3536
+    mprintf("    --build=NAME [cvd] -b NAME             Build a CVD file\n");
3535 3537
     mprintf("    --max-bad-sigs=NUMBER                  Maximum number of mismatched signatures\n");
3536
-    mprintf("                                           when building a CVD. Default: 3000\n");
3538
+    mprintf("                                           When building a CVD. Default: 3000\n");
3537 3539
     mprintf("    --flevel=FLEVEL                        Specify a custom flevel.\n");
3538 3540
     mprintf("                                           Default: %u\n", cl_retflevel());
3539 3541
     mprintf("    --cvd-version=NUMBER                   Specify the version number to use for\n");