diff --git a/doc/iscsi-ls.1 b/doc/iscsi-ls.1
index dd97aa5..83a4515 100644
--- a/doc/iscsi-ls.1
+++ b/doc/iscsi-ls.1
@@ -1,13 +1,13 @@
'\" t
.\" Title: iscsi-ls
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.78.1
-.\" Date: 03/24/2014
+.\" Generator: DocBook XSL Stylesheets v1.79.1
+.\" Date: 06/03/2017
.\" Manual: iscsi-ls: list iSCSI targets and LUNs
.\" Source: iscsi-ls
.\" Language: English
.\"
-.TH "ISCSI\-LS" "1" "03/24/2014" "iscsi\-ls" "iscsi\-ls: list iSCSI targets"
+.TH "ISCSI\-LS" "1" "06/03/2017" "iscsi\-ls" "iscsi\-ls: list iSCSI targets"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
@@ -33,7 +33,7 @@ iscsi-ls \- Utility to list iSCSI targets and LUNs
.HP \w'\fBiscsi\-ls\ [\ OPTIONS\ ]\ \fR\ 'u
\fBiscsi\-ls [ OPTIONS ] \fR
.HP \w'\fBiscsi\-ls\fR\ 'u
-\fBiscsi\-ls\fR [\-i\ \-\-initiator\-name=] [\-s\ \-\-show\-luns] [\-d\ \-\-debug=] [\-?\ \-\-help] [\-\-usage]
+\fBiscsi\-ls\fR [\-i\ \-\-initiator\-name=] [\-s\ \-\-show\-luns] [\-d\ \-\-debug] [\-?\ \-\-help] [\-\-usage]
.SH "DESCRIPTION"
.PP
iscsi\-ls is a utility to list all targets and LUNs for an iSCSI portal\&.
@@ -75,9 +75,9 @@ In addition to listing all the targets at the specified portal also list all the
In order to display the type of LUN iscsi\-ls need to be able to perform a normal login on the targets\&. If the target is using access\-control you will need to specify an initiator\-name that allows normal logins to the target\&.
.RE
.PP
-\-d \-\-debug=
+\-d \-\-debug
.RS 4
-Debug level\&.
+Print debug information\&.
.RE
.PP
\-? \-\-help
diff --git a/doc/iscsi-ls.xml b/doc/iscsi-ls.xml
index cb79f11..1d1e260 100644
--- a/doc/iscsi-ls.xml
+++ b/doc/iscsi-ls.xml
@@ -23,7 +23,7 @@
iscsi-ls
-i --initiator-name=<IQN>
-s --show-luns
- -d --debug=<INTEGER>
+ -d --debug
-? --help
--usage
@@ -101,10 +101,10 @@
- -d --debug=<INTEGER>
+ -d --debug
- Debug level.
+ Print debug information.
diff --git a/utils/iscsi-ls.c b/utils/iscsi-ls.c
index 5c5249f..2c4dbc6 100644
--- a/utils/iscsi-ls.c
+++ b/utils/iscsi-ls.c
@@ -319,14 +319,16 @@ void discoveryconnect_cb(struct iscsi_context *iscsi, int status, void *command_
void print_usage(void)
{
- fprintf(stderr, "Usage: iscsi-ls [-?|--help] [--usage] [-i|--initiator-name=iqn-name]\n"
- "\t\t[-s|--show-luns] \n");
+ fprintf(stderr, "Usage: iscsi-ls [-?|--help] [-d|--debug] "
+ "[--usage] [-i|--initiator-name=iqn-name]\n"
+ "\t\t[-s|--show-luns] \n");
}
void print_help(void)
{
fprintf(stderr, "Usage: iscsi-ls [OPTION...] \n");
fprintf(stderr, " -i, --initiator-name=iqn-name Initiatorname to use\n");
+ fprintf(stderr, " -d, --debug Print debug information\n");
fprintf(stderr, " -s, --show-luns Show the luns for each target\n");
fprintf(stderr, " --url Output targets in URL format\n");
fprintf(stderr, " (does not work with -s)\n");