commit 052c1687c70bd75d1a17f5a62f73237c2564ec7b
parent 401d17e12362c89b291af91b651c166beeccc850
Author: Frederic Cambus <fred@statdns.com>
Date: Fri, 25 Oct 2019 18:10:34 +0200
Document the new -d flag, and remove entry in TODO.
Diffstat:
3 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
@@ -116,15 +116,16 @@ The free GeoLite2 databases from MaxMind can be downloaded [here][8]:
## Usage
- logswan [-ghv] file
+ logswan [-ghv] [-d db] file
If file is a single dash (`-'), logswan reads from the standard input.
-Options are:
+The options are as follows:
- -g Enable GeoIP lookups
- -h Display usage
- -v Display version
+ -d db Specify path to a GeoIP database.
+ -g Enable GeoIP lookups.
+ -h Display usage.
+ -v Display version.
Logswan outputs JSON data to **stdout**.
diff --git a/TODO b/TODO
@@ -1 +0,0 @@
-- Add a switch to allow passing a custom path to DB files?
diff --git a/logswan.1 b/logswan.1
@@ -24,7 +24,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 18 2019 $
+.Dd $Mdocdate: October 25 2019 $
.Dt LOGSWAN 1
.Os
.Sh NAME
@@ -33,6 +33,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl ghv
+.Op Fl d Ar db
.Ar file
.Sh DESCRIPTION
.Nm
@@ -52,6 +53,8 @@ reads from the standard input.
.Pp
The options are as follows:
.Bl -tag -width Ds
+.It Fl d Ar db
+Specify path to a GeoIP database.
.It Fl g
Enable GeoIP lookups.
.It Fl h