Add --version to --help output and man page

Close #888
Close #894
This commit is contained in:
Junegunn Choi 2017-04-02 11:30:22 +09:00
parent 0fe07cf9fe
commit 9078197446
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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