summaryrefslogtreecommitdiff
path: root/util/icmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/icmd.c')
-rw-r--r--util/icmd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/util/icmd.c b/util/icmd.c
index 20949be..523248b 100644
--- a/util/icmd.c
+++ b/util/icmd.c
@@ -78,7 +78,7 @@ extern void ipmi_lan_set_timeout(int ipmito, int tries, int pingto);
/*
* Global variables
*/
-static char * progver = "2.94";
+static char * progver = "2.95";
static char * progname = "icmd";
static char fdebug = 0;
static char fquiet = 0;
@@ -175,7 +175,7 @@ main(int argc, char **argv)
char *s1;
istart = 1;
- while ( (c = getopt( argc, argv,"djkm:qst:xN:P:R:U:EF:J:T:V:YZ:?")) != EOF )
+ while ( (c = getopt( argc, argv,"djkm:qst:xp:N:P:R:U:EF:J:T:V:YZ:?")) != EOF )
switch(c) {
case 'j': /* just pass the bytes to KCS */
fjustpass = 1;
@@ -209,6 +209,7 @@ main(int argc, char **argv)
case 'x': fdebug = 1; break; /* debug messages */
case 'V': /* priv level */
fprivset = 1;
+ case 'p': /* port */
case 'N': /* nodename */
case 'U': /* remote username */
case 'P': /* remote password */
@@ -230,7 +231,7 @@ main(int argc, char **argv)
printf(" -m002000 specific MC (bus 00,sa 20,lun 00)\n");
printf(" -q quiet mode, with minimal headers\n");
printf(" -s skips the GetDeviceID command\n");
- print_lan_opt_usage();
+ print_lan_opt_usage(1);
ret = ERR_USAGE;
goto do_exit;
}