harmonize help messages
This commit is contained in:
+14
-12
@@ -31,18 +31,20 @@
|
||||
|
||||
|
||||
char * help_text =
|
||||
"lcdexec - LCDproc client to execute commands from the LCDd menu.\n"
|
||||
"Copyright (c) 2002, Joris Robijn\n"
|
||||
"This file is released under the GNU General Public License. Refer to the\n"
|
||||
"COPYING file distributed with this package.\n"
|
||||
"Options:\n"
|
||||
" -c <file>\tSpecify configuration file ["DEFAULT_CONFIGFILE"]\n"
|
||||
" -a <address>\tDNS name or IP address of the LCDd server [localhost]\n"
|
||||
" -p <port>\tport of the LCDd server [13666]\n"
|
||||
" -f \t\tRun in foreground\n"
|
||||
" -r <level>\tSet reporting level (0-5) [2: errors and warnings]\n"
|
||||
" -s <0|1>\tReport to syslog (1) or stderr (0, default)\n"
|
||||
" -h\t\tShow this help\n";
|
||||
"lcdexec - LCDproc client to execute commands from the LCDd menu\n"
|
||||
"\n"
|
||||
"Copyright (c) 2002, Joris Robijn, 2006 Peter Marschall.\n"
|
||||
"This program is released under the terms of the GNU General Public License.\n"
|
||||
"\n"
|
||||
"Usage: lcdexec [<options>]\n"
|
||||
" where <options> are:\n"
|
||||
" -c <file> Specify configuration file ["DEFAULT_CONFIGFILE"]\n"
|
||||
" -a <address> DNS name or IP address of the LCDd server [localhost]\n"
|
||||
" -p <port> port of the LCDd server [13666]\n"
|
||||
" -f Run in foreground\n"
|
||||
" -r <level> Set reporting level (0-5) [2: errors and warnings]\n"
|
||||
" -s <0|1> Report to syslog (1) or stderr (0, default)\n"
|
||||
" -h Show this help\n";
|
||||
|
||||
char * progname = "lcdexec";
|
||||
|
||||
|
||||
+27
-22
@@ -401,31 +401,36 @@ void
|
||||
HelpScreen (int exit_state)
|
||||
{
|
||||
fprintf(stderr,
|
||||
"lcdproc - LCDproc system status information viewer\n"
|
||||
"\n"
|
||||
"Copyright (c) 1999-2006 Scott Scriven, William Ferrell, and misc. contributors.\n"
|
||||
"This program is released under the terms of the GNU General Public License.\n"
|
||||
"\n"
|
||||
"Usage: lcdproc [<options>] [<screens> ...]\n"
|
||||
" where <options> are\n"
|
||||
" -s <host> connect to LCDd daemon on <host>\n"
|
||||
" -p <port> connect to LCDd daemon using <port>\n"
|
||||
" -f run in foreground\n"
|
||||
" -e <delay> slow down initial announcement of modes (in 1/100s)\n"
|
||||
" -c <config> use a configuration file other than %s\n"
|
||||
" -h show this help screen\n"
|
||||
" -v display program version\n"
|
||||
" -s <host> connect to LCDd daemon on <host>\n"
|
||||
" -p <port> connect to LCDd daemon using <port>\n"
|
||||
" -f run in foreground\n"
|
||||
" -e <delay> slow down initial announcement of screens (in 1/100s)\n"
|
||||
" -c <config> use a configuration file other than %s\n"
|
||||
" -h show this help screen\n"
|
||||
" -v display program version\n"
|
||||
" and <screens> are\n"
|
||||
" C CPU detailed CPU usage\n"
|
||||
" P SMP-CPU CPU usage overview (one line per CPU)\n"
|
||||
" G CPUGraph CPU usage histogram\n"
|
||||
" L Load load histogram\n"
|
||||
" M Memory memory & swap usage\n"
|
||||
" S ProcSize biggest processes size\n"
|
||||
" D Disk filling level of mounted file systems\n"
|
||||
" I Iface network interface usage\n"
|
||||
" B Battery battery status\n"
|
||||
" T TimeDate time & date information\n"
|
||||
" O OldTime old time screen\n"
|
||||
" U Uptime uptime screen\n"
|
||||
" K BigClock big clock\n"
|
||||
" N MiniClock minimal clock\n"
|
||||
" A About credits page\n"
|
||||
" C CPU detailed CPU usage\n"
|
||||
" P SMP-CPU CPU usage overview (one line per CPU)\n"
|
||||
" G CPUGraph CPU usage histogram\n"
|
||||
" L Load load histogram\n"
|
||||
" M Memory memory & swap usage\n"
|
||||
" S ProcSize biggest processes size\n"
|
||||
" D Disk filling level of mounted file systems\n"
|
||||
" I Iface network interface usage\n"
|
||||
" B Battery battery status\n"
|
||||
" T TimeDate time & date information\n"
|
||||
" O OldTime old time screen\n"
|
||||
" U Uptime uptime screen\n"
|
||||
" K BigClock big clock\n"
|
||||
" N MiniClock minimal clock\n"
|
||||
" A About credits page\n"
|
||||
"\n"
|
||||
"Example:\n"
|
||||
" lcdproc -s my.lcdproc.server.com -p 13666 C M L\n"
|
||||
|
||||
+15
-13
@@ -6,7 +6,7 @@
|
||||
* COPYING file distributed with this package.
|
||||
*
|
||||
* Copyright (c) 2002, Joris Robijn
|
||||
*
|
||||
* Copyright (c) 2006, Peter Marschall
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -35,18 +35,20 @@
|
||||
|
||||
|
||||
char * help_text =
|
||||
"lcdvc - LCDproc virtual console displayer.\n"
|
||||
"Copyright (c) 2002, Joris Robijn\n"
|
||||
"This file is released under the GNU General Public License. Refer to the\n"
|
||||
"COPYING file distributed with this package.\n"
|
||||
"Options:\n"
|
||||
" -c <file>\tSpecify a configfile to load ["DEFAULT_CONFIGFILE"]\n"
|
||||
" -a <address>\tDNS name or IP address of the LCDd server [localhost]\n"
|
||||
" -p <port>\tPort of the LCDd server [13666]\n"
|
||||
" -f \tRun in foreground\n"
|
||||
" -r <level>\tSet reporting level (0-5) [2: errors and warnings]\n"
|
||||
" -s <0|1>\tReport to 1=syslog or 0=stderr\n"
|
||||
" -h\t\tShow this help\n";
|
||||
"lcdvc - LCDproc virtual console\n"
|
||||
"\n"
|
||||
"Copyright (c) 2002, Joris Robijn, 2006 Peter Marschall.\n"
|
||||
"This program is released under the terms of the GNU General Public License.\n"
|
||||
"\n"
|
||||
"Usage: lcdvc [<options>]\n"
|
||||
" where <options> are:\n"
|
||||
" -c <file> Specify configuration file ["DEFAULT_CONFIGFILE"]\n"
|
||||
" -a <address> DNS name or IP address of the LCDd server [localhost]\n"
|
||||
" -p <port> port of the LCDd server [13666]\n"
|
||||
" -f Run in foreground\n"
|
||||
" -r <level> Set reporting level (0-5) [2: errors and warnings]\n"
|
||||
" -s <0|1> Report to syslog (1) or stderr (0, default)\n"
|
||||
" -h Show this help\n";
|
||||
|
||||
char *progname = "lcdvc";
|
||||
char *configfile = UNSET_STR;
|
||||
|
||||
Reference in New Issue
Block a user