026520
From dfca464e5fe4c9107f08bff7e6e2730a504945b7 Mon Sep 17 00:00:00 2001
026520
From: Boris Ranto <branto@redhat.com>
026520
Date: Thu, 2 Jun 2016 12:47:22 +0200
026520
Subject: [PATCH] Apply './OpenIPMI-2.0.19-man.patch'
026520
026520
Signed-off-by: Boris Ranto <branto@redhat.com>
026520
---
026520
 lanserv/ipmilan.8       | 13 ++++++++++---
026520
 man/ipmi_cmdlang.7      | 36 ++++++++++++++++++------------------
026520
 man/ipmi_ui.1           | 10 +++++-----
026520
 man/openipmi_conparms.7 |  4 ++--
026520
 man/openipmicmd.1       |  6 +++---
026520
 man/openipmigui.1       | 12 ++++++------
026520
 man/openipmish.1        | 12 +++++++++++-
026520
 man/rmcp_ping.1         |  2 +-
026520
 man/solterm.1           |  6 +++---
026520
 sample/ipmicmd.c        |  1 +
026520
 sample/rmcp_ping.c      |  5 +++++
026520
 sample/solterm.c        |  7 ++++++-
026520
 ui/basic_ui.c           | 25 +++++++++++++++++++++++++
026520
 13 files changed, 96 insertions(+), 43 deletions(-)
026520
026520
diff --git a/lanserv/ipmilan.8 b/lanserv/ipmilan.8
026520
index ff43d5c..9360507 100644
026520
--- a/lanserv/ipmilan.8
026520
+++ b/lanserv/ipmilan.8
026520
@@ -29,18 +29,25 @@ address they came in.
026520
 
026520
 .SH OPTIONS
026520
 .TP
026520
-.BI \-c\  config-file
026520
+\fB\-c\fR file,\ \fB\-\-config\-file\fR file
026520
 Set the configuration file to one other than the default of
026520
 .I "/etc/ipmi_lan.conf"
026520
 .TP
026520
-.B \-n
026520
+\fB\-i\fR device,\ \fB\-\-ipmi-dev\fR device
026520
+Sets the desired device
026520
+.TP
026520
+\fB\-n\fR,\ \fB\-\-daemonize\fR
026520
 Stops  the  daemon  from  forking  and  detaching  from the controlling
026520
 terminal. This is useful for running from init.
026520
 .TP
026520
-.B \-d
026520
+\fB\-d\fR,\ \fB\-\-debug\fR
026520
 Turns on debugging to standard output.  You generally have to use
026520
 .B \-n
026520
 with this.
026520
+.TP
026520
+\fB\-?\fR,\ \fB\-\-help\fR,\ \fB\-\-usage\fR
026520
+Prints brief usage hints message.
026520
+
026520
 
026520
 
026520
 .SH CONFIGURATION
026520
diff --git a/man/ipmi_cmdlang.7 b/man/ipmi_cmdlang.7
026520
index 4d18e76..a6d73b9 100644
026520
--- a/man/ipmi_cmdlang.7
026520
+++ b/man/ipmi_cmdlang.7
026520
@@ -246,7 +246,7 @@ instance, the command to create a domain is
026520
 The command to list all sensors in a domain named domain1 is
026520
 .B sensor list domain1.
026520
 
026520
-Each command has a reponse for each object operated on, which is
026520
+Each command has a response for each object operated on, which is
026520
 listed after the command description.  In those responses, anything
026520
 that begins with a
026520
 .B %
026520
@@ -316,7 +316,7 @@ BMC.  For that, notice that the LAN connection has an options extra IP
026520
 and port for the second IP address.  OpenIPMI supports these IP
026520
 addresses and connection, detecting failures, switching between
026520
 addresses, and other fault-tolerant things.  It does this
026520
-transparently to the user.  Mutiple connections may require special
026520
+transparently to the user.  Multiple connections may require special
026520
 OEM support, read the documentation about your specific system if you
026520
 need this.
026520
 
026520
@@ -336,7 +336,7 @@ or
026520
 \fI<name>\fP and \fI<password>\fP are the user name and password of
026520
 the IPMI user to use for the connection.
026520
 The <smi num> is the driver number, generally 0.
026520
-Options enable and disable various automitic processing and are:
026520
+Options enable and disable various automatic processing and are:
026520
 .PD 0
026520
 .HP
026520
 .B -[no]all
026520
@@ -356,7 +356,7 @@ is false by default.
026520
 is false by default.
026520
 .HP
026520
 .B -[no]ipmbscan
026520
-- IPMB bus scanning.  This turns on scanning IPMB busses when they are found.
026520
+- IPMB bus scanning.  This turns on scanning IPMB buses when they are found.
026520
 This is false by default.
026520
 .HP
026520
 .B -[no]oeminit
026520
@@ -461,7 +461,7 @@ available hacks are:
026520
 The -M option sets the maximum outstanding messages.  The default is
026520
 2, ranges 1-63.
026520
 
026520
-Options enable and disable various automitic processing and are:
026520
+Options enable and disable various automatic processing and are:
026520
 .PD 0
026520
 .HP
026520
 .B -[no]all
026520
@@ -519,7 +519,7 @@ Domain Created: <domain>
026520
 .RE
026520
 
026520
 .B fru <domain> <is_logical> <device_address> <device_id> <lun> <private_bus> <channel>
026520
-- dump a fru given all it's insundry information.
026520
+- dump a fru given all it's sundry information.
026520
 .TP
026520
 Response:
026520
 .RS
026520
@@ -533,7 +533,7 @@ Domain
026520
 
026520
 .B msg <domain> <channel> <ipmb> <LUN> <NetFN> <Cmd> [data...]
026520
 - Send a command to the given IPMB address on the given channel and
026520
-display the response.  Note that this does not require the existance
026520
+display the response.  Note that this does not require the existence
026520
 of an MC in OpenIPMI.
026520
 .TP
026520
 Response:
026520
@@ -571,7 +571,7 @@ SEL Rescan done: <domain>
026520
 .RE
026520
 
026520
 .B presence <domain>
026520
-- Audit the presence of all enities in the domain.  Note that this just
026520
+- Audit the presence of all entities in the domain.  Note that this just
026520
 starts the process; it will run in the background.
026520
 .TP
026520
 Response is:
026520
@@ -689,7 +689,7 @@ FRU deleted: <fru>
026520
 - Set the value of a FRU element.  The
026520
 name is the record name, or multi-record.  The number is required
026520
 for fields that need it (custom and multi-record).  The value is
026520
-an a single value for integers.  For strings it is a string
026520
+a single value for integers.  For strings it is a string
026520
 type (either binary, ascii, or unicode) and the info.  Binary and
026520
 unicode data is specified as numbers.  ascii data is specified in
026520
 a string.  Note that setting a ascii value with no string will
026520
@@ -770,7 +770,7 @@ Domain
026520
 .B info <entity>
026520
 - Dump information about an entity.
026520
 .TP
026520
-Reponse:
026520
+Response:
026520
 .RS
026520
 .nf
026520
 Entity
026520
@@ -784,7 +784,7 @@ Entity
026520
 .B fru <entity>
026520
 - Dump the FRU information about the given entity.
026520
 .TP
026520
-Reponse:
026520
+Response:
026520
 .RS
026520
 .nf
026520
 Entity
026520
@@ -813,7 +813,7 @@ Entity
026520
 .B set_act_time <entity>
026520
 - Set the hot-swap auto-activate time.
026520
 .TP
026520
-Reponse:
026520
+Response:
026520
 .RS
026520
 .nf
026520
 Set act time: <entity>
026520
@@ -981,7 +981,7 @@ Response:
026520
 .nf
026520
 Sensor
026520
   Name: <sensor>
026520
-  Positivie Hysteresis: <integer>
026520
+  Positive Hysteresis: <integer>
026520
   Negative Hysteresis: <integer>
026520
 .fi
026520
 .RE
026520
@@ -1101,7 +1101,7 @@ Set done: <control>
026520
 .RE
026520
 
026520
 .B get <control>
026520
-- Get the value of a control.  The reponse depends
026520
+- Get the value of a control.  The response depends
026520
 on the control type.
026520
 .TP
026520
 Response:
026520
@@ -1128,7 +1128,7 @@ multiple lights.  The options values (marked with
026520
 ) will not be
026520
 present if local control is set to true.  Local control means that
026520
 the LED takes whatever default function it does on the device
026520
-(like disk activity, ethernet activity, hot-swap LED, etc.).
026520
+(like disk activity, Ethernet activity, hot-swap LED, etc.).
026520
 Response for id control:
026520
 .RS
026520
 .nf
026520
@@ -1325,7 +1325,7 @@ Channel Access
026520
 - Set information about the MC's channel access.  There are two different
026520
 places where this is stored, the present in-use values (volatile) and the
026520
 non-volatile storage that is loaded at startup.  Note if you specify
026520
-channel 0xe, the modified channel will be the current channel.  Parms
026520
+channel 0xe, the modified channel will be the current channel.  Parameters
026520
 are:
026520
 .RS
026520
 .nf
026520
@@ -1547,7 +1547,7 @@ PET destroyed: <pet>
026520
 .SS pef
026520
 commands dealing with platform even filters.  These are basically
026520
 connections to the PEF configuration parameters in an MC.  You use a
026520
-pef to fetch a pef config, which you can then modify and write back to
026520
+pef to fetch a pef configuration, which you can then modify and write back to
026520
 the MC.  Note that when you get a pef config, you claim a lock on the
026520
 MC that must be unlocked.
026520
 
026520
@@ -1780,7 +1780,7 @@ operational and finished all it SDR, FRU, and bus scans:
026520
 .fi
026520
 .RE
026520
 
026520
-The following comes out when domain connection infomration changes:
026520
+The following comes out when domain connection information changes:
026520
 .RS
026520
 .nf
026520
   EVENT
026520
diff --git a/man/ipmi_ui.1 b/man/ipmi_ui.1
026520
index 9c5d9b6..011255f 100644
026520
--- a/man/ipmi_ui.1
026520
+++ b/man/ipmi_ui.1
026520
@@ -4,7 +4,7 @@
026520
 ipmi_ui \- Crude interface to an IPMI system
026520
 
026520
 .SH SYNOPSIS
026520
-.B ipmiui
026520
+.B ipmi_ui
026520
 .RB [\| \-dmsg \|]
026520
 .RB [\| \-dmem \|]
026520
 .RB [\| \-c \|]
026520
@@ -34,7 +34,7 @@ Normally,
026520
 starts up in a full-screen format.  The left window shows the output
026520
 of commands, the right window shows the logs from OpenIPMI.  Both
026520
 windows are scrollable with page up and page down keys, press the "\fBF1\fP"
026520
-key to choose the the left window to scroll, the "\fBF2\fP" key to choose
026520
+key to choose the left window to scroll, the "\fBF2\fP" key to choose
026520
 the right window to scroll.
026520
 
026520
 Note that you must set your environment \fBTERM\fP variable properly for
026520
@@ -48,7 +48,7 @@ the connections are to the same IPMI domain through different
026520
 management controllers.  Also, each LAN connection may have two IP
026520
 addresses.  These are two different addresses to the same management
026520
 controller.  So you may have a total of 4 IP addresses to an IPMI
026520
-domain, two management controllers and two IP adresses to each
026520
+domain, two management controllers and two IP addresses to each
026520
 management controller.
026520
 
026520
 .SH OPTIONS
026520
@@ -174,12 +174,12 @@ turns events on or off from the sensor (\fB0\fP or \fB1\fP).
026520
 turns scanning on or off for the sensor (\fB0\fP or \fB1\fP).
026520
 .I "assertion-bitmask"
026520
 specifies the bitmask of thresholds or states
026520
-that should be enabled or disabled when a thrshold or state is
026520
+that should be enabled or disabled when a threshold or state is
026520
 asserted.  It is a bunch of 0's and 1's, where the first one is for
026520
 threshold/state 0, the second for threshold/state 1, etc.
026520
 .I "deassertion-bitmask"
026520
 specifies the bitmask of thresholds or states
026520
-that should be enabled or disabled when a thrshold or state is
026520
+that should be enabled or disabled when a threshold or state is
026520
 deasserted.
026520
 
026520
 .SH CONTROLS
026520
diff --git a/man/openipmi_conparms.7 b/man/openipmi_conparms.7
026520
index 587da2a..9dc6404 100644
026520
--- a/man/openipmi_conparms.7
026520
+++ b/man/openipmi_conparms.7
026520
@@ -1,7 +1,7 @@
026520
 .TH openipmi_conparms 7 05/13/03 OpenIPMI "Connection Parameters for OpenIPMI"
026520
 
026520
 .SH NAME
026520
-openipmi_cmdparms \- Connection parmeters for OpenIPMI
026520
+openipmi_cmdparms \- Connection parameters for OpenIPMI
026520
 
026520
 .SH SYNOPSIS
026520
 
026520
@@ -97,7 +97,7 @@ use.
026520
 .TP
026520
 .BI \-Rc\  confidentiality\ algorithm
026520
 The \fIRMCP+ confidentiality (encryption) algorithm\fP to use.  This keeps
026520
-evesdroppers from seeing the data.  Valid values are: \fBbmcpick\fP,
026520
+eavesdroppers from seeing the data.  Valid values are: \fBbmcpick\fP,
026520
 \fBaes_cbc_128\fP, \fBxrc4_128\fP, and \fBxrc_40\fP.  The \fBbmcpick\fP option is used by
026520
 default, which means the BMC picks the algorithm it wants to use.
026520
 
026520
diff --git a/man/openipmicmd.1 b/man/openipmicmd.1
026520
index 6bd2401..5d206d1 100644
026520
--- a/man/openipmicmd.1
026520
+++ b/man/openipmicmd.1
026520
@@ -22,7 +22,7 @@ interfaces.
026520
 Execute a single command an exit.
026520
 
026520
 .TP
026520
-.BI <connection parms>
026520
+.BI <connection\ parms>
026520
 The parameters for the connection depend on the connection type.
026520
 These are all described in openipmi_conparms (7)
026520
 
026520
@@ -32,7 +32,7 @@ Once up, you can execute commands in the user interface.  Note that
026520
 commands and responses are asynchronous, you issue a command and the
026520
 interface returns immediately.  When the response comes back, it will
026520
 be dumped on your console.  That's a little strange looking, but IPMI
026520
-is ansychronous underneath.  Note that the \fB\-k\fP option is synchronous,
026520
+is asynchronous underneath.  Note that the \fB\-k\fP option is synchronous,
026520
 it will wait for the response or a timeout before returning.
026520
 
026520
 .TP
026520
@@ -82,7 +82,7 @@ Remove a command registration.
026520
 .BR openipmi_conparms (7)
026520
 
026520
 .SH "KNOWN PROBLEMS"
026520
-The asychronous nature of the program can be annoying.
026520
+The asynchronous nature of the program can be annoying.
026520
 
026520
 .SH AUTHOR
026520
 .PP
026520
diff --git a/man/openipmigui.1 b/man/openipmigui.1
026520
index 04f880b..0c8c10f 100644
026520
--- a/man/openipmigui.1
026520
+++ b/man/openipmigui.1
026520
@@ -38,7 +38,7 @@ Turn on message debugging, this will dump all messages to debug log output.
026520
 .TP
026520
 .B \-\-drawmsg
026520
 Turn on raw message debugging, this will dump all low-level messages to
026520
-debug log output.  This differes from normal message debugging in that all
026520
+debug log output.  This differs from normal message debugging in that all
026520
 protocol messages are also dumped, not just IPMI messages.
026520
 .TP
026520
 .B \-\-dmem
026520
@@ -81,7 +81,7 @@ tree.
026520
 
026520
 The tree window has a top-level list of all the domains for which
026520
 OpenIPMI has connections (or pending connection).  Each domain
026520
-exapands into domain-specific information and a list of entities and
026520
+expands into domain-specific information and a list of entities and
026520
 Management Controllers (MCs) for that domain.
026520
 
026520
 Right click drives most of the operations in the tree window.  Many
026520
@@ -92,7 +92,7 @@ Color is used in the GUI to denote error status, and shading is used
026520
 to denote availability.  If a sensor has an error, the tree entry for
026520
 that sensor will change colors.  Black means no error, yellow means
026520
 warning, red means critical, and blue means non-recoverable.  These
026520
-errors propigate up, so the entity containing that sensor will be the
026520
+errors propagate up, so the entity containing that sensor will be the
026520
 same color as the most critical error for the sensors underneath it.
026520
 The same goes for domain, it will be the same color as the most
026520
 critical error for the entities underneath it.  This way, if you watch
026520
@@ -146,7 +146,7 @@ that sensor.
026520
 
026520
 .SH CONTROLS
026520
 
026520
-Controls are available under the entity they belong to.  control
026520
+Controls are available under the entity they belong to.  Control
026520
 information is beyond the scope of this document, as IPMI controls are
026520
 very complex.  See the IPMI document from OpenIPMI for information
026520
 about controls.
026520
@@ -214,7 +214,7 @@ channel listing.  Note that some user setting (the name and password)
026520
 are global to all channels on the MC.
026520
 
026520
 Due to the IPMI spec and some unfortunate implementation bugs, some
026520
-wierd issues exist with this information.  The user has an Enabled
026520
+weird issues exist with this information.  The user has an Enabled
026520
 value that tells whether the user is enabled or not.  When initially
026520
 displayed, this field shows as a "?" because this field is not
026520
 readable. It will displayed as the actual value when it is modified,
026520
@@ -247,7 +247,7 @@ changed.
026520
 .SH SOLPARMS
026520
 
026520
 In the channel display on a 8023_LAN channel, a LANPARM configuration
026520
-command is available if the MC supporte SOL (Serial Over LAN).  This
026520
+command is available if the MC supports SOL (Serial Over LAN).  This
026520
 pulls up all the parameters for the LAN and allows them to be set.
026520
 Right-clicking on an item allows it to be changed.
026520
 
026520
diff --git a/man/openipmish.1 b/man/openipmish.1
026520
index 36b1e43..2c902e4 100644
026520
--- a/man/openipmish.1
026520
+++ b/man/openipmish.1
026520
@@ -26,7 +26,7 @@ Turn on message debugging, this will dump all messages to debug log output.
026520
 .TP
026520
 .B \-\-drawmsg
026520
 Turn on raw message debugging, this will dump all low-level messages to
026520
-debug log output.  This differes from normal message debugging in that all
026520
+debug log output.  This differs from normal message debugging in that all
026520
 protocol messages are also dumped, not just IPMI messages.
026520
 .TP
026520
 .B \-\-dmem
026520
@@ -34,11 +34,21 @@ Turn on memory debugging, this will cause memory allocation and
026520
 deallocations to be checked.  When the program terminates, it will
026520
 dump all memory that was not properly freed (leaked).
026520
 .TP
026520
+.B \-\-dmsgerr
026520
+Turn on printing out low-level message errors.
026520
+.TP
026520
 .B \-\-dlock
026520
 Turn on lock debugging, this will check lock operations to make sure
026520
 that locks are help in all the proper places and make sure that locks
026520
 are properly nested.
026520
 .TP
026520
+\fB-x\fR\ <string>,\ \fB\-\-execute\fR\ <string>
026520
+Execute the given string at startup.  This may be entered multiple times
026520
+for multiple commands.
026520
+.TP
026520
+.B \-\-glib
026520
+Use glib for the OS handler.
026520
+.TP
026520
 .B \-\-snmp
026520
 Enable the SNMP trap handler.
026520
 .B openipmish
026520
diff --git a/man/rmcp_ping.1 b/man/rmcp_ping.1
026520
index d60019a..ce5cab0 100644
026520
--- a/man/rmcp_ping.1
026520
+++ b/man/rmcp_ping.1
026520
@@ -38,7 +38,7 @@ starttag.  This is zero by default
026520
 Turns on debugging to standard output.
026520
 .TP
026520
 .I destination
026520
-The target address, default is the boradcast address (default 255.255.255.255)
026520
+The target address, default is the broadcast address (default 255.255.255.255)
026520
 
026520
 .SH AUTHOR
026520
 .PP
026520
diff --git a/man/solterm.1 b/man/solterm.1
026520
index 1479a1b..ada15d8 100644
026520
--- a/man/solterm.1
026520
+++ b/man/solterm.1
026520
@@ -37,9 +37,9 @@ These are all described in openipmi_conparms (7)
026520
 .TP
026520
 .BI \-e\  escape_char
026520
 The character to use to escape, or exit, the program.  Entering this
026520
-chatacter right after a newline is entered causes the program to go
026520
+character right after a newline is entered causes the program to go
026520
 into command mode.  A single character after this performs a command.
026520
-The default escape character is "~" as shown below.  Suppported
026520
+The default escape character is "~" as shown below.  Supported
026520
 commands are:
026520
 .RS
026520
 .IP ~.
026520
@@ -98,7 +98,7 @@ the SoL session. This is the default.
026520
 .TP
026520
 .BI \-holdoff
026520
 Specifies that CTS, DTR, and DSR are to be deasserted at the start of
026520
-the SoL session so that the configuration may be modifeid before the
026520
+the SoL session so that the configuration may be modified before the
026520
 handshake is released.
026520
 
026520
 .TP
026520
diff --git a/sample/ipmicmd.c b/sample/ipmicmd.c
026520
index 6cbcdc5..5f5c1ec 100644
026520
--- a/sample/ipmicmd.c
026520
+++ b/sample/ipmicmd.c
026520
@@ -124,6 +124,7 @@ void usage(void)
026520
     printf("%s [-k <command>] [-v] <con_parms>\n", progname);
026520
     printf("Where <con_parms> is one of:");
026520
     ipmi_parse_args_iter_help(con_usage, NULL);
026520
+    printf("\n");
026520
 }
026520
 
026520
 char *
026520
diff --git a/sample/rmcp_ping.c b/sample/rmcp_ping.c
026520
index 7814792..5778fea 100644
026520
--- a/sample/rmcp_ping.c
026520
+++ b/sample/rmcp_ping.c
026520
@@ -156,6 +156,11 @@ main(int argc, char *argv[])
026520
 	if (strcmp(argv[i], "--") == 0) {
026520
 	    i++;
026520
 	    break;
026520
+	} else if ((strcmp(argv[i], "--help") == 0) ||
026520
+		   (strcmp(argv[i], "-?") == 0) ||
026520
+		   (strcmp(argv[i], "-h") == 0)) {
026520
+	    i++;
026520
+	    usage();
026520
 	} else if (strcmp(argv[i], "-p") == 0) {
026520
 	    i++;
026520
 	    if (i >= argc) {
026520
diff --git a/sample/solterm.c b/sample/solterm.c
026520
index 38a3f9d..a3e52de 100644
026520
--- a/sample/solterm.c
026520
+++ b/sample/solterm.c
026520
@@ -743,7 +743,12 @@ int main(int argc, char *argv[])
026520
 
026520
 	/* Now we make sure "lan" is the first argument so we get the
026520
 	   right connection type... */
026520
-	if (strcmp(argv[1], "lan") != 0) {
026520
+	if ((strcmp(argv[1], "-h") == 0) ||
026520
+	    (strcmp(argv[1], "--help") == 0) ||
026520
+	    (strcmp(argv[1], "-?") == 0)) {
026520
+		usage();
026520
+		exit(1);
026520
+	} else if (strcmp(argv[1], "lan") != 0) {
026520
 		fprintf(stderr, "main: %s only supports lan connections\n",
026520
 			progname);
026520
 		exit(1);
026520
diff --git a/ui/basic_ui.c b/ui/basic_ui.c
026520
index 6993eb2..84889cb 100644
026520
--- a/ui/basic_ui.c
026520
+++ b/ui/basic_ui.c
026520
@@ -306,6 +306,26 @@ snmp_init(os_handler_t *os_hnd)
026520
 static void snmp_setup_fds(os_handler_t *os_hnd) { }
026520
 #endif /* HAVE_UCDSNMP */
026520
     
026520
+void help(void)
026520
+{
026520
+    fprintf(stdout, "ipmi_ui [ options ] smi smi-num\n");
026520
+    fprintf(stdout, "ipmi_ui [ oprions ] lan IP port [IP2 port2] auth priv user pass\n");
026520
+    fprintf(stdout, "\n");
026520
+    fprintf(stdout, "Options:\n");
026520
+    fprintf(stdout, "    -c       Command line mode\n");
026520
+    fprintf(stdout, "    -dlock   Lock debugging ON\n");
026520
+    fprintf(stdout, "    -dmem    Memory debugging ON\n");
026520
+    fprintf(stdout, "    -drawmsg Raw message ON\n");
026520
+    fprintf(stdout, "    -dmsg    Dump all messages.\n");
026520
+#ifdef HAVE_UCDSNMP
026520
+    fprintf(stdout, "    -snmp    SNMP trap handler ON\n");
026520
+#endif
026520
+    fprintf(stdout, "Auth:\n");
026520
+    fprintf(stdout, "    none | straight | md5 | md2\n");
026520
+    fprintf(stdout, "Priv:\n");
026520
+    fprintf(stdout, "    callback | user | operator | admin\n");
026520
+}
026520
+
026520
 int
026520
 main(int argc, char *argv[])
026520
 {
026520
@@ -327,6 +347,11 @@ main(int argc, char *argv[])
026520
 	curr_arg++;
026520
 	if (strcmp(arg, "--") == 0) {
026520
 	    break;
026520
+	} else if (strcmp(arg, "-?") == 0 ||
026520
+		   strcmp(arg, "-h") == 0 ||
026520
+		   strcmp(arg, "--help") == 0) {
026520
+	   help();
026520
+	   return(1);
026520
 	} else if (strcmp(arg, "-c") == 0) {
026520
 	    full_screen = 0;
026520
 	} else if (strcmp(arg, "-dlock") == 0) {
026520
-- 
026520
2.7.4
026520