Since --coreutils-prog gives no additional functionality
over the positional form (since commit v9.12-347-gc0a3c2164),
deprecate its use by not documenting it.

* src/coreutils.c: Remove mention of --coreutils-prog,
but keep supporting it for backwards compatibility.
* NEWS: Don't mention --coreutils-prog.
* doc/coreutils.texi: Likewise.
---
 NEWS               |  7 +++----
 doc/coreutils.texi | 10 ++++------
 src/coreutils.c    |  3 +--
 3 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/NEWS b/NEWS
index df86e62f1..a1a3eb998 100644
--- a/NEWS
+++ b/NEWS
@@ -429,10 +429,9 @@ GNU coreutils NEWS                                    -*- 
outline -*-
 
 ** New Features
 
-  The multi-call binary accepts 'coreutils PROGRAM [ARG]...' as a shorthand
-  for 'coreutils --coreutils-prog=PROGRAM [ARG]...', as long as the
-  multi-call binary is named or has a name ending with "coreutils".
-  'coreutils --list' lists the built-in programs, one per line.
+  The multi-call binary now accepts 'coreutils PROGRAM [ARG]...'
+  to explicitly invoke PROGRAM.  Also the multi-call binary accepts
+  the '--list' option to list the built-in programs, one per line.
 
   'env' and 'printenv' now support the --quoting-style option
   to control the format of printed environment variables.
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 1eeaf5c96..6b2194b31 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -1684,18 +1684,16 @@ you can work around the compatibility problems by 
setting
 @cindex combined
 @cindex calling combined multi-call program
 
-The @command{coreutils} command invokes an individual utility, either
-implicitly selected by the last component of the name used to invoke
-@command{coreutils}, or explicitly with these invocations.
+The @command{coreutils} command selects a utility from the last component
+of its invocation name or from its first argument.
 Synopsis:
 
 @example
 coreutils @var{program} @dots{}
-coreutils @option{--coreutils-prog=@var{program}} @dots{}
 @end example
 
-The explicit forms, e.g. @samp{coreutils ls}, requires that
-the multi-call binary is invoked through name ending in @samp{coreutils}.
+To select a utility by argument, as in @samp{coreutils ls},
+ensure the binary is invoked under a name ending in @samp{coreutils}.
 
 The program accepts the following options.  Also see @ref{Common options}.
 
diff --git a/src/coreutils.c b/src/coreutils.c
index 178955b24..86955933b 100644
--- a/src/coreutils.c
+++ b/src/coreutils.c
@@ -95,9 +95,8 @@ usage (int status)
     {
       printf (_("\
 Usage: %s PROGRAM_NAME [PARAMETERS]...\n\
-  or:  %s --coreutils-prog=PROGRAM_NAME [PARAMETERS]...\n\
   or:  %s OPTION\n"),
-              program_name, program_name, program_name);
+              program_name, program_name);
       fputs (_("\
 Execute the PROGRAM_NAME built-in program with the given PARAMETERS.\n\
 \n"), stdout);
-- 
2.56.0


Reply via email to