On 7/1/25 08:51, Alison Schofield wrote:
On Mon, Jun 30, 2025 at 03:28:25PM +0800, Rong Tao wrote:
From: Rong Tao <rong...@cestc.cn>

Such as daxctl(1) manual.
What does the 'Such as ...' mean?  I thought that it meant you saw
the --list-cmds as an option in another of our family of commands,
but I don't see it.

Thanks for your reply, There are three commands has --list-cmds argument:

$ cxl --list-cmds

$ daxctl --list-cmds

$ ndctl --list-cmds

Thus, this patch add --list-cmds in man-page for those three tools.


For these, the --list-cmds, is a suggestion in the --help option,
like this:

$ ndctl -h

  usage: ndctl [--version] [--help] COMMAND [ARGS]

  See 'ndctl help COMMAND' for more information on a specific command.
  ndctl --list-cmds to see all available commands



Signed-off-by: Rong Tao <rong...@cestc.cn>
---
  Documentation/cxl/cxl.txt       | 3 +++
  Documentation/daxctl/daxctl.txt | 3 +++
  Documentation/ndctl/ndctl.txt   | 3 +++
  3 files changed, 9 insertions(+)

diff --git a/Documentation/cxl/cxl.txt b/Documentation/cxl/cxl.txt
index 41a51c7d3892..546207d885eb 100644
--- a/Documentation/cxl/cxl.txt
+++ b/Documentation/cxl/cxl.txt
@@ -14,6 +14,9 @@ SYNOPSIS
OPTIONS
  -------
+--list-cmds::
+  Display all available commands.
+
  -v::
  --version::
    Display the version of the 'cxl' utility.
diff --git a/Documentation/daxctl/daxctl.txt b/Documentation/daxctl/daxctl.txt
index f81b161c9771..606abc3e9635 100644
--- a/Documentation/daxctl/daxctl.txt
+++ b/Documentation/daxctl/daxctl.txt
@@ -14,6 +14,9 @@ SYNOPSIS
OPTIONS
  -------
+--list-cmds::
+  Display all available commands.
+
  -v::
  --version::
    Display daxctl version.
diff --git a/Documentation/ndctl/ndctl.txt b/Documentation/ndctl/ndctl.txt
index c2919de4692d..08c3e949418a 100644
--- a/Documentation/ndctl/ndctl.txt
+++ b/Documentation/ndctl/ndctl.txt
@@ -14,6 +14,9 @@ SYNOPSIS
OPTIONS
  -------
+--list-cmds::
+  Display all available commands.
+
  -v::
  --version::
    Display ndctl version.
--
2.50.0




Reply via email to