Option -L is not documented in the "diff --help" output (and
as a consequence, in the generated diff.1 man page either).

The doc/diffutils.info file contains

'-L LABEL'
'--label=LABEL'
     Use LABEL instead of the file name in the context format (*note
     Context Format::) and unified format (*note Unified Format::)
     headers.  *Note RCS::.

so "    --label LABEL" should just be changed to "-L, --label LABEL"
in src/diff.c. Patch attached.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
diff --git a/src/diff.c b/src/diff.c
index 1df3f41..b0bb29a 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -953,7 +953,7 @@ static char const * const option_help_msgid[] = {
   "",
   N_("-p, --show-c-function         show which C function each change is in"),
   N_("-F, --show-function-line=RE   show the most recent line matching RE"),
-  N_("    --label LABEL             use LABEL instead of file name and timestamp\n"
+  N_("-L, --label LABEL             use LABEL instead of file name and timestamp\n"
      "                                (can be repeated)"),
   "",
   N_("-t, --expand-tabs             expand tabs to spaces in output"),

Reply via email to