]> git.ipfire.org Git - thirdparty/sarg.git/blob - usage.c
97151e74113bbb1c3f7c12a55379392d1a5eb7a8
[thirdparty/sarg.git] / usage.c
1 /*
2 * AUTHOR: Pedro Lineu Orso pedro.orso@gmail.com
3 * 1998, 2008
4 * SARG Squid Analysis Report Generator http://sarg.sourceforge.net
5 *
6 * SARG donations:
7 * please look at http://sarg.sourceforge.net/donations.php
8 * ---------------------------------------------------------------------
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
23 *
24 */
25
26 #include "include/conf.h"
27 #include "include/defs.h"
28
29 void usage(const char *prog)
30 {
31 fprintf(stderr, "%s: %s [%s...]\n", prog,text[39],text[40]);
32 fprintf(stderr, "%5s-a %s\n"," ",text[23]);
33 fprintf(stderr, "%5s-b %s\n"," ",text[71]);
34 fprintf(stderr, "%5s-c %s\n"," ",text[69]);
35 fprintf(stderr, "%5s-d %s dd/mm/yyyy-dd/mm/yyyy\n"," ",text[24]);
36 fprintf(stderr, "%5s-e %s (%s)\n"," ",text[41],text[42]);
37 fprintf(stderr, "%5s-f %s (%s/sarg.conf)\n"," ",text[70],SYSCONFDIR);
38 fprintf(stderr, "%5s-g %s [e=%s -> dd/mm/yy, u=%s -> mm/dd/yy]\n"," ",text[25],text[26],text[27]);
39 fprintf(stderr, "%5s-h Help (this...)\n"," ");
40 fprintf(stderr, "%5s-i %s\n"," ",text[43]);
41 fprintf(stderr, "%5s-l %s\n"," ",text[37]);
42 fprintf(stderr, "%5s-n %s\n"," ",text[65]);
43 fprintf(stderr, "%5s-o %s\n"," ",text[38]);
44 fprintf(stderr, "%5s-p %s (%s)\n"," ",text[29],text[44]);
45 fprintf(stderr, "%5s-s %s [Eg. www.microsoft.com, www.netscape.com]\n"," ",text[30]);
46 fprintf(stderr, "%5s-t %s [HH, HH:MM]\n"," ",text[31]);
47 fprintf(stderr, "%5s-u %s\n"," ",text[32]);
48 fprintf(stderr, "%5s-w %s\n"," ",text[34]);
49 fprintf(stderr, "%5s-x %s\n"," ",text[35]);
50 fprintf(stderr, "%5s-z %s\n"," ",text[36]);
51 fprintf(stderr, "%5s-convert %s\n"," ",text[76]);
52 fprintf(stderr, "%5s-split %s\n"," ",text[77]);
53 fprintf(stderr, "\n\t%s-%s %s Pedro Lineu Orso - pedro.orso@gmail.com\n",PGM,VERSION,text[78]);
54 fprintf(stderr, "\thttp://sarg.sourceforge.net\n");
55 fprintf(stderr, "\n\tPease donate to the sarg project:");
56 fprintf(stderr, "\n\t\thttp://sarg.sourceforge.net/donations.php\n\n");
57
58 return;
59 }