]> git.ipfire.org Git - thirdparty/sarg.git/blob - usage.c
Ported r225 from branches/v2_2_7 (remove Pedro Orso's mail from headers)
[thirdparty/sarg.git] / usage.c
1 /*
2 * SARG Squid Analysis Report Generator http://sarg.sourceforge.net
3 * 1998, 2010
4 *
5 * SARG donations:
6 * please look at http://sarg.sourceforge.net/donations.php
7 * Support:
8 * http://sourceforge.net/projects/sarg/forums/forum/363374
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"
28 #include "include/defs.h"
29
30 void usage(const char *prog)
31 {
32 fprintf(stderr, "%s: %s [%s...]\n", prog,text[39],text[40]);
33 fprintf(stderr, "%5s-a %s\n"," ",text[23]);
34 fprintf(stderr, "%5s-b %s\n"," ",text[71]);
35 fprintf(stderr, "%5s-c %s\n"," ",text[69]);
36 fprintf(stderr, "%5s-d %s dd/mm/yyyy-dd/mm/yyyy\n"," ",text[24]);
37 fprintf(stderr, "%5s-e %s (%s)\n"," ",text[41],text[42]);
38 fprintf(stderr, "%5s-f %s (%s/sarg.conf)\n"," ",text[70],SYSCONFDIR);
39 fprintf(stderr, "%5s-g %s [e=%s -> dd/mm/yy, u=%s -> mm/dd/yy]\n"," ",text[25],text[26],text[27]);
40 fprintf(stderr, "%5s-h Help (this...)\n"," ");
41 fprintf(stderr, "%5s-i %s\n"," ",text[43]);
42 fprintf(stderr, "%5s-l %s\n"," ",text[37]);
43 fprintf(stderr, "%5s-n %s\n"," ",text[65]);
44 fprintf(stderr, "%5s-o %s\n"," ",text[38]);
45 fprintf(stderr, "%5s-p %s (%s)\n"," ",text[29],text[44]);
46 fprintf(stderr, "%5s-s %s [Eg. www.microsoft.com, www.netscape.com]\n"," ",text[30]);
47 fprintf(stderr, "%5s-t %s [HH, HH:MM]\n"," ",text[31]);
48 fprintf(stderr, "%5s-u %s\n"," ",text[32]);
49 fprintf(stderr, "%5s-w %s\n"," ",text[34]);
50 fprintf(stderr, "%5s-x %s\n"," ",text[35]);
51 fprintf(stderr, "%5s-z %s\n"," ",text[36]);
52 fprintf(stderr, "%5s-convert %s\n"," ",text[76]);
53 fprintf(stderr, "%5s-split %s\n"," ",text[77]);
54 fprintf(stderr, "\n\t%s-%s\n",PGM,VERSION);
55 fprintf(stderr, "\thttp://sarg.sourceforge.net\n");
56 fprintf(stderr, "\n\tPease donate to the sarg project:");
57 fprintf(stderr, "\n\t\thttp://sarg.sourceforge.net/donations.php\n\n");
58
59 return;
60 }