"Fossies" - the Fresh Open Source Software Archive 
Member "sarg-2.4.0/usage.c" (2 Mar 2017, 3579 Bytes) of package /linux/privat/sarg-2.4.0.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "usage.c" see the
Fossies "Dox" file reference documentation and the latest
Fossies "Diffs" side-by-side code changes report:
2.3.11_vs_2.4.0.
1 /*
2 * SARG Squid Analysis Report Generator http://sarg.sourceforge.net
3 * 1998, 2015
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 printf(_("Usage: %s [options...]\n"), prog);
33 puts (_(" -a NAME|IP Create report for host name or IP address"));
34 //puts (_(" -b Useragent log"));
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 (_(" -n Resolve IP addresses using RDNS"));
49 puts (_(" -o DIR Report output directory"));
50 puts (_(" -p Use Ip Address instead of userid (reports)"));
51 puts (_(" -P PREFIX Prepend a prefix to the splitted file names"));
52 puts (_(" -r Produce real time report"));
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 (_(" --statistics Print run time statistics"));
58 puts (_(" -t TIME Limit report to time range [HH:MM or HH:MM-HH:MM]"));
59 puts (_(" -u USER Report only that user's activity"));
60 puts (_(" --version Print version information"));
61 puts (_(" -w DIR Temporary directory"));
62 puts (_(" -x Debug messages"));
63 puts (_(" -z Process messages"));
64 printf("\n\t%s-%s\n",PGM,VERSION);
65 puts ("\thttp://sarg.sourceforge.net");
66 /*puts (_("\n\tPlease donate to the sarg project:"));
67 puts ("\t\thttp://sarg.sourceforge.net/donations.php\n");*/
68
69 return;
70 }