Documentation/grep: fix documentation of -O

Since the argument of -O, --open-file-in-pager is optional, it must be
stuck to the command. Reflect this in the documentation.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Matthieu Moy 2015-09-19 09:47:49 +02:00 committed by Junio C Hamano
parent 340f2c5e63
commit 318ca61531
1 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ OPTIONS
synonym for `--files-with-matches`. synonym for `--files-with-matches`.


-O[<pager>]:: -O[<pager>]::
--open-files-in-pager [<pager>]:: --open-files-in-pager[=<pager>]::
Open the matching files in the pager (not the output of 'grep'). Open the matching files in the pager (not the output of 'grep').
If the pager happens to be "less" or "vi", and the user If the pager happens to be "less" or "vi", and the user
specified only one pattern, the first file is positioned at specified only one pattern, the first file is positioned at