summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2009-11-09 12:42:13 -0600
committerMike Christie <michaelc@cs.wisc.edu>2009-11-09 12:42:13 -0600
commit4136ee677385a667de70fdff223c67d4e16842fc (patch)
treeed133fdffa7a904d6ccc5f83a8843a746f161b63 /utils
parent5cf607cc658cab8566bf802d346aacd6d1e94978 (diff)
downloadopen-iscsi-4136ee677385a667de70fdff223c67d4e16842fc.tar.gz
iscsi-iname: fix misleading help description
From Oren Held: > I've encountered too many cases of people thinking the iscsi-iname > command, just like ifconfig, displays the currently configured IQN, > not being aware that, in fact, it generates a new IQN. > The man page (Debian-supplied, not in open-iscsi git) describes it > best, but the --help string is absolutely misleading or even wrong. > > Here's my patch, that changes the wording to something similar to the > Debian's man page:
Diffstat (limited to 'utils')
-rw-r--r--utils/iscsi-iname.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/iscsi-iname.c b/utils/iscsi-iname.c
index 7cf0e7a..6347edc 100644
--- a/utils/iscsi-iname.c
+++ b/utils/iscsi-iname.c
@@ -62,7 +62,8 @@ main(int argc, char *argv[])
prefix = argv[1];
if (( strcmp(prefix, "-h") == 0 ) ||
( strcmp(prefix, "--help") == 0 )) {
- printf("\nDisplays the iSCSI initiator name\n");
+ printf("\nGenerates a unique iSCSI node name "
+ "on every invocation.\n");
exit(0);
} else if ( strcmp(prefix, "-p") == 0 ) {
prefix = argv[2];