commit 45beafa91b277e0751aa6d42f1ed5cda7ede8489
parent 32d1a9728c3b49ef97d906eba673df0dd3e89bbc
Author: Frederic Cambus <fred@statdns.com>
Date: Mon, 15 Feb 2021 11:34:55 +0100
Try to harmonize usage information everywhere.
Diffstat:
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
@@ -127,7 +127,7 @@ of charge [here][11], but require accepting an EULA and is not freely licensed.
## Usage
- logswan [-ghv] [-d db] file
+ logswan [-ghv] [-d db] logfile
If file is a single dash (`-'), logswan reads from the standard input.
diff --git a/logswan.1 b/logswan.1
@@ -34,7 +34,7 @@
.Nm
.Op Fl ghv
.Op Fl d Ar db
-.Ar file
+.Ar logfile
.Sh DESCRIPTION
.Nm
is a fast Web log analyzer using probabilistic data structures.
diff --git a/src/logswan.c b/src/logswan.c
@@ -75,12 +75,12 @@ char *db = NULL;
static void
displayUsage()
{
- printf("USAGE: logswan [options] inputfile\n\n" \
- "Options are:\n\n" \
- " -d Specify path to a GeoIP database\n" \
- " -g Enable GeoIP lookups\n" \
- " -h Display usage\n" \
- " -v Display version\n");
+ printf("logswan [-ghv] [-d db] logfile\n\n" \
+ "The options are as follows:\n\n" \
+ " -d db Specify path to a GeoIP database\n" \
+ " -g Enable GeoIP lookups\n" \
+ " -h Display usage\n" \
+ " -v Display version\n");
}
int