The manpage is up to date.
So is the help displayed by sarg with command line options -h or --help.
case 'a':
safe_strcpy(addr,optarg,sizeof(addr));
break;
- case 'b':
+ case 'b': //unused option
safe_strcpy(uagent,optarg,sizeof(uagent));
break;
case 'c':
case 'x':
debug++;
break;
- case 'y':
+ case 'y': //unused option
langcode++;
break;
case 'z':
'\" t
.\" Title: sarg
.\" Author: Frédéric Marchal <fmarchal@users.sourceforge.net>
-.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
.\" Date: 25 Jan 2011
.\" Manual: SARG
.\" Source: sarg
.\"
.TH "SARG" "1" "25 Jan 2011" "sarg" "SARG"
.\" -----------------------------------------------------------------
+.\" * Define some portability stuff
+.\" -----------------------------------------------------------------
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.\" http://bugs.debian.org/507673
+.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.PP
\fBsarg\fR
-generates reports in HTML with fields such as: users, IP Addresses, bytes, sites, and times\&. These HTML files can appear in your web server\'s directory for browsing by users or administrators\&. You may also have
+generates reports in HTML with fields such as: users, IP Addresses, bytes, sites, and times\&. These HTML files can appear in your web server\*(Aqs directory for browsing by users or administrators\&. You may also have
\fBsarg\fR
email the reports to the Squid Cache administrator\&.
.PP
.PP
A summary of options is included below\&.
.PP
-\fB\-h\fR
+\fB\-h\fR \fB\-\-help\fR
.RS 4
Show summary of options\&.
.RE
.PP
\fB\-\-keeplogs\fR
.RS 4
-Don\'t delete any old report\&. It is equivalent to setting
+Don\*(Aqt delete any old report\&. It is equivalent to setting
\fB\-\-lastlog 0\fR
but is provided for convenience\&.
.RE
This option is kept for compatibility with older versions of sarg but, starting with
sarg 2\&.3, the log files may be named on the command line without the
\fB\-l\fR
-option\&. It allows the use of wildcards on the command line\&. Make sure you don\'t exceed the limit of 255 files\&.
+option\&. It allows the use of wildcards on the command line\&. Make sure you don\*(Aqt exceed the limit of 255 files\&.
.RE
.PP
\fB\-\-lastlog \fR\fB\fIn\fR\fR
to match the output format of your web content filtering program\&. This option can be repeated up to 64 times to read multiple files\&.
.RE
.PP
+\fB\-m\fR
+.RS 4
+Enable advanced processing debug messages\&. This option produces an enourmous amount of output\&.
+.RE
+.PP
\fB\-n\fR
.RS 4
Enables ip address resolution\&.
or in the current directory\&.
.RE
.PP
+\fB\-r\fR
+.RS 4
+Output the realtime report on the standard output and exit\&.
+.RE
+.PP
\fB\-s \fR\fB\fIstring\fR\fR
.RS 4
Limits report to the site specified by
<variablelist>
-<varlistentry><term><option>-h</option></term>
+<varlistentry><term><option>-h</option> <option>--help</option></term>
<listitem>
<para>
Show summary of options.
</listitem>
</varlistentry>
+<varlistentry><term><option>-m</option></term>
+<listitem>
+<para>
+Enable advanced processing debug messages. This option produces an enourmous amount of output.
+</para>
+</listitem>
+</varlistentry>
+
<varlistentry><term><option>-n</option></term>
<listitem>
<para>
</listitem>
</varlistentry>
+<varlistentry><term><option>-r</option></term>
+<listitem>
+<para>
+Output the realtime report on the standard output and exit.
+</para>
+</listitem>
+</varlistentry>
+
<varlistentry><term><option>-s <replaceable>string</replaceable></option></term>
<listitem>
<para>
</listitem>
</varlistentry>
+<varlistentry><term><option>-v</option></term>
+<listitem>
+<para>
+Write sarg version and exit.
+</para>
+</listitem>
+</varlistentry>
+
<varlistentry><term><option>-w <replaceable>dir</replaceable></option></term>
<listitem>
<para>
void usage(const char *prog)
{
printf(_("Usage: %s [options...]\n"), prog);
- puts (_(" -a Hostname or IP address"));
- puts (_(" -b Useragent log"));
- puts (_(" -c Exclude file"));
- puts (_(" -d Date from-until dd/mm/yyyy-dd/mm/yyyy"));
- puts (_(" -e Email address to send reports (stdout for console)"));
- printf(_(" -f Config file (%s/sarg.conf)\n"),SYSCONFDIR);
- puts (_(" -g Date format [e=Europe -> dd/mm/yyyy, u=USA -> mm/dd/yyyy]"));
- puts (_(" -h This help"));
- puts (_(" -i Reports by user and IP address"));
- puts (_(" -l Input log"));
- puts (_(" -n Resolve IP Address"));
- puts (_(" -o Output dir"));
- puts (_(" -p Use Ip Address instead of userid (reports)"));
- puts (_(" -s Accessed site [Eg. www.microsoft.com, www.netscape.com]"));
- puts (_(" -t Time [HH, HH:MM]"));
- puts (_(" -u User"));
- puts (_(" -w Temporary dir"));
- puts (_(" -x Debug messages"));
- puts (_(" -z Process messages"));
- puts (_(" -convert Convert the access.log file to a legible date"));
- puts (_(" -split Split the log file by date in -d parameter"));
+ puts (_(" -a NAME|IP Create report for host name or IP address"));
+ //puts (_(" -b Useragent log"));
+ puts (_(" -c FILE Exclude connected hosts from the report"));
+ puts (_(" --convert Convert the access.log file to a legible date"));
+ puts (_(" --css Output the internal CSS"));
+ puts (_(" -d DATE Date range to include in the report: from-until dd/mm/yyyy-dd/mm/yyyy"));
+ puts (_(" -e MAIL Email address to send reports to (stdout for console)"));
+ printf(_(" -f FILE Config file to read (default is %s/sarg.conf)\n"),SYSCONFDIR);
+ puts (_(" -g FMT Date format [e=Europe -> dd/mm/yyyy, u=USA -> mm/dd/yyyy]"));
+ puts (_(" -h This help"));
+ puts (_(" --help This help"));
+ puts (_(" -i Reports by user and IP address"));
+ puts (_(" --keeplogs Keep every previously generated report"));
+ puts (_(" -l FILE Input log"));
+ puts (_(" --lastlog Set the number of previous reports to keep"));
+ puts (_(" -m Advanced process messages"));
+ puts (_(" -n Resolve IP addresses using RDNS"));
+ puts (_(" -o DIR Report output directory"));
+ puts (_(" -p Use Ip Address instead of userid (reports)"));
+ puts (_(" -P PREFIX Prepend a prefix to the splitted file names"));
+ puts (_(" -s SITE Limit report to accessed site [eg. www.microsoft.com]"));
+ puts (_(" --split Split the log file by date in -d parameter"));
+ puts (_(" --splitprefix PREFIX Prepend a prefix to the splitted file names"));
+ puts (_(" -t TIME Limit report to time range [HH:MM or HH:MM-HH:MM]"));
+ puts (_(" -u USER Report only that user's activity"));
+ puts (_(" -w DIR Temporary directory"));
+ puts (_(" -x Debug messages"));
+ puts (_(" -z Process messages"));
printf("\n\t%s-%s\n",PGM,VERSION);
puts ("\thttp://sarg.sourceforge.net");
puts (_("\n\tPlease donate to the sarg project:"));