51e48f
diff --git a/doc/grep.in.1 b/doc/grep.in.1
51e48f
index 58a6c0e..3e6a8cf 100644
51e48f
--- a/doc/grep.in.1
51e48f
+++ b/doc/grep.in.1
51e48f
@@ -377,7 +377,7 @@ Print
51e48f
 .I NUM
51e48f
 lines of trailing context after matching lines.
51e48f
 Places a line containing a group separator
51e48f
-.RB ( \-\^\- )
51e48f
+.RB "(described under " \-\^\-group\-separator )
51e48f
 between contiguous groups of matches.
51e48f
 With the
51e48f
 .B \-o
51e48f
@@ -390,7 +390,7 @@ Print
51e48f
 .I NUM
51e48f
 lines of leading context before matching lines.
51e48f
 Places a line containing a group separator
51e48f
-.RB ( \-\^\- )
51e48f
+.RB "(described under " \-\^\-group\-separator )
51e48f
 between contiguous groups of matches.
51e48f
 With the
51e48f
 .B \-o
51e48f
@@ -403,13 +403,24 @@ Print
51e48f
 .I NUM
51e48f
 lines of output context.
51e48f
 Places a line containing a group separator
51e48f
-.RB ( \-\^\- )
51e48f
+.RB "(described under " \-\^\-group\-separator )
51e48f
 between contiguous groups of matches.
51e48f
 With the
51e48f
 .B \-o
51e48f
 or
51e48f
 .B \-\^\-only\-matching
51e48f
 option, this has no effect and a warning is given.
51e48f
+.TP
51e48f
+.BI \-\^\-group\-separator= SEP
51e48f
+Use
51e48f
+.I SEP
51e48f
+as a group separator. By default
51e48f
+.I SEP
51e48f
+is double hyphen
51e48f
+.RB ( \-\^\- ).
51e48f
+.TP
51e48f
+.B \-\^\-no\-group-separator
51e48f
+Use empty string as a group separator.
51e48f
 .SS "File and Directory Selection"
51e48f
 .TP
51e48f
 .BR \-a ", " \-\^\-text
51e48f
diff --git a/src/grep.c b/src/grep.c
51e48f
index 7c0f8a8..0fcc272 100644
51e48f
--- a/src/grep.c
51e48f
+++ b/src/grep.c
51e48f
@@ -1602,6 +1602,8 @@ Context control:\n\
51e48f
 "));
51e48f
       printf (_("\
51e48f
   -NUM                      same as --context=NUM\n\
51e48f
+      --group-separator=SEP use SEP as a group separator\n\
51e48f
+      --no-group-separator  use empty string as a group separator\n\
51e48f
       --color[=WHEN],\n\
51e48f
       --colour[=WHEN]       use markers to highlight the matching strings;\n\
51e48f
                             WHEN is 'always', 'never', or 'auto'\n\