]>
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 FM |
32 | printf(_("Usage: %s [options...]\n"), prog); |
33 | puts (_(" -a Hostname or IP address")); | |
34 | puts (_(" -b Useragent log")); | |
35 | puts (_(" -c Exclude file")); | |
36 | puts (_(" -d Date from-until dd/mm/yyyy-dd/mm/yyyy")); | |
37 | puts (_(" -e Email address to send reports (stdout for console)")); | |
38 | printf(_(" -f Config file (%s/sarg.conf)\n"),SYSCONFDIR); | |
39 | puts (_(" -g Date format [e=Europe -> dd/mm/yyyy, u=USA -> mm/dd/yyyy]")); | |
40 | puts (_(" -h This help")); | |
41 | puts (_(" -i Reports by user and IP address")); | |
42 | puts (_(" -l Input log")); | |
43 | puts (_(" -n Resolve IP Address")); | |
44 | puts (_(" -o Output dir")); | |
45 | puts (_(" -p Use Ip Address instead of userid (reports)")); | |
46 | puts (_(" -s Accessed site [Eg. www.microsoft.com, www.netscape.com]")); | |
47 | puts (_(" -t Time [HH, HH:MM]")); | |
48 | puts (_(" -u User")); | |
49 | puts (_(" -w Temporary dir")); | |
50 | puts (_(" -x Debug messages")); | |
51 | puts (_(" -z Process messages")); | |
52 | puts (_(" -convert Convert the access.log file to a legible date")); | |
53 | puts (_(" -split Split the log file by date in -d parameter")); | |
54 | printf("\n\t%s-%s\n",PGM,VERSION); | |
55 | puts ("\thttp://sarg.sourceforge.net"); | |
56 | puts (_("\n\tPlease donate to the sarg project:")); | |
57 | puts ("\t\thttp://sarg.sourceforge.net/donations.php\n"); | |
25697a35 | 58 | |
9bd92830 | 59 | return; |
25697a35 | 60 | } |