From 90781974467048a133113af1dc03830ab093f573 Mon Sep 17 00:00:00 2001
From: Junegunn Choi <junegunn.c@gmail.com>
Date: Sun, 2 Apr 2017 11:30:22 +0900
Subject: [PATCH] Add --version to --help output and man page

Close #888
Close #894
---
 man/man1/fzf.1 | 3 +++
 src/options.go | 1 +
 2 files changed, 4 insertions(+)

diff --git a/man/man1/fzf.1 b/man/man1/fzf.1
index d139f3b2..6649f02c 100644
--- a/man/man1/fzf.1
+++ b/man/man1/fzf.1
@@ -352,6 +352,9 @@ ncurses finder only after the input stream is complete.
 .RS
 e.g. \fBfzf --multi | fzf --sync\fR
 .RE
+.TP
+.B "--version"
+Display version information and exit
 
 .SH ENVIRONMENT VARIABLES
 .TP
diff --git a/src/options.go b/src/options.go
index 7a3d60cb..0c84a3a9 100644
--- a/src/options.go
+++ b/src/options.go
@@ -86,6 +86,7 @@ const usage = `usage: fzf [options]
     --read0               Read input delimited by ASCII NUL characters
     --print0              Print output delimited by ASCII NUL characters
     --sync                Synchronous search for multi-staged filtering
+    --version             Display version information and exit
 
   Environment variables
     FZF_DEFAULT_COMMAND   Default command to use when input is tty
-- 
GitLab