]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Update the usage note included in the source code
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Mon, 16 Jul 2012 11:53:06 +0000 (13:53 +0200)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Mon, 16 Jul 2012 11:53:06 +0000 (13:53 +0200)
The usage notice is displayed with sarg --help.

The first column is wider. The argument that's still too long is wrapped on
the next line.

The donation request is removed as I don't know if it still possible to
make a donation and, if it is possible, I don't know where that money goes.

usage.c

diff --git a/usage.c b/usage.c
index 4e6ca73aaf77e91444311db620201f8c8421e50f..084f7122369e0a76b6c0015260f106f598522ea2 100644 (file)
--- a/usage.c
+++ b/usage.c
 void usage(const char *prog)
 {
        printf(_("Usage: %s [options...]\n"), prog);
-       puts  (_("     -a NAME|IP  Create report for host name or IP address"));
+       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"));
+       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\n"
+                "                    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:"));
-       puts  ("\t\thttp://sarg.sourceforge.net/donations.php\n");
+       /*puts  (_("\n\tPlease donate to the sarg project:"));
+       puts  ("\t\thttp://sarg.sourceforge.net/donations.php\n");*/
 
        return;
 }