@@ -18,6 +18,7 @@ OPTIONS
-------
include::labels-options.txt[]
-o::
+--output::
output file
-j::
--json::
@@ -790,12 +790,12 @@ OPT_STRING('b', "bus", ¶m.bus, "bus-id", \
OPT_BOOLEAN('v',"verbose", ¶m.verbose, "turn on debug")
#define READ_OPTIONS() \
-OPT_STRING('o', NULL, ¶m.outfile, "output-file", \
+OPT_STRING('o', "output", ¶m.outfile, "output-file", \
"filename to write label area contents"), \
OPT_BOOLEAN('j', "json", ¶m.json, "parse label data into json")
#define WRITE_OPTIONS() \
-OPT_STRING('i', NULL, ¶m.infile, "input-file", \
+OPT_STRING('i', "input", ¶m.infile, "input-file", \
"filename to read label area data")
#define INIT_OPTIONS() \
Without long options the bash completion code is unable to determine the available options with "--list-opts". Reported-by: Vishal Verma <vishal.l.verma@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- Documentation/ndctl-read-labels.txt | 1 + ndctl/dimm.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)