]>
Commit | Line | Data |
---|---|---|
25697a35 | 1 | /* |
94ff9470 | 2 | * SARG Squid Analysis Report Generator http://sarg.sourceforge.net |
61d965f3 | 3 | * 1998, 2012 |
25697a35 GS |
4 | * |
5 | * SARG donations: | |
6 | * please look at http://sarg.sourceforge.net/donations.php | |
1164c474 FM |
7 | * Support: |
8 | * http://sourceforge.net/projects/sarg/forums/forum/363374 | |
25697a35 GS |
9 | * --------------------------------------------------------------------- |
10 | * | |
11 | * This program is free software; you can redistribute it and/or modify | |
12 | * it under the terms of the GNU General Public License as published by | |
13 | * the Free Software Foundation; either version 2 of the License, or | |
14 | * (at your option) any later version. | |
15 | * | |
16 | * This program is distributed in the hope that it will be useful, | |
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 | * GNU General Public License for more details. | |
20 | * | |
21 | * You should have received a copy of the GNU General Public License | |
22 | * along with this program; if not, write to the Free Software | |
23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. | |
24 | * | |
25 | */ | |
26 | ||
27 | #include "include/conf.h" | |
5f3cfd1d | 28 | #include "include/defs.h" |
25697a35 | 29 | |
32e71fa4 | 30 | void usage(const char *prog) |
25697a35 | 31 | { |
9bd92830 | 32 | printf(_("Usage: %s [options...]\n"), prog); |
b9cd4d33 | 33 | puts (_(" -a NAME|IP Create report for host name or IP address")); |
d6f08599 | 34 | //puts (_(" -b Useragent log")); |
cb9b619d FM |
35 | puts (_(" -c FILE Exclude connected hosts from the report")); |
36 | puts (_(" --convert Convert the access.log file to a legible date")); | |
37 | puts (_(" --css Output the internal CSS")); | |
38 | puts (_(" -d DATE Date range to include in the report: from-until dd/mm/yyyy-dd/mm/yyyy")); | |
39 | puts (_(" -e MAIL Email address to send reports to (stdout for console)")); | |
40 | printf(_(" -f FILE Config file to read (default is %s/sarg.conf)\n"),SYSCONFDIR); | |
41 | puts (_(" -g FMT Date format [e=Europe -> dd/mm/yyyy, u=USA -> mm/dd/yyyy]")); | |
42 | puts (_(" -h This help")); | |
43 | puts (_(" --help This help")); | |
44 | puts (_(" -i Reports by user and IP address")); | |
45 | puts (_(" --keeplogs Keep every previously generated report")); | |
46 | puts (_(" -l FILE Input log")); | |
47 | puts (_(" --lastlog Set the number of previous reports to keep")); | |
48 | puts (_(" -m Advanced process messages")); | |
49 | puts (_(" -n Resolve IP addresses using RDNS")); | |
50 | puts (_(" -o DIR Report output directory")); | |
51 | puts (_(" -p Use Ip Address instead of userid (reports)")); | |
52 | puts (_(" -P PREFIX Prepend a prefix to the splitted file names")); | |
53 | puts (_(" -s SITE Limit report to accessed site [eg. www.microsoft.com]")); | |
54 | puts (_(" --split Split the log file by date in -d parameter")); | |
55 | puts (_(" --splitprefix PREFIX\n" | |
56 | " Prepend a prefix to the splitted file names")); | |
57 | puts (_(" -t TIME Limit report to time range [HH:MM or HH:MM-HH:MM]")); | |
58 | puts (_(" -u USER Report only that user's activity")); | |
59 | puts (_(" -w DIR Temporary directory")); | |
60 | puts (_(" -x Debug messages")); | |
61 | puts (_(" -z Process messages")); | |
9bd92830 FM |
62 | printf("\n\t%s-%s\n",PGM,VERSION); |
63 | puts ("\thttp://sarg.sourceforge.net"); | |
cb9b619d FM |
64 | /*puts (_("\n\tPlease donate to the sarg project:")); |
65 | puts ("\t\thttp://sarg.sourceforge.net/donations.php\n");*/ | |
25697a35 | 66 | |
9bd92830 | 67 | return; |
25697a35 | 68 | } |