pgpool2.git / summary / log / commit / refs
commit 54290e8bdaa34500b12e20ab41f98e9653dca3dc
Author: Guillaume Lelarge <guillaume at lelarge.info>
Date: Sat Aug 14 18:01:09 2010 +0000
Add the new --verbose option in the usage function.
pcp/pcp_node_info.c | 20 +++++++++++---------
pcp/pcp_proc_info.c | 20 +++++++++++---------
2 files changed, 22 insertions(+), 18 deletions(-)
diff --git a/pcp/pcp_node_info.c b/pcp/pcp_node_info.c
index c27707787..e3d2e46e9 100644
--- a/pcp/pcp_node_info.c
+++ b/pcp/pcp_node_info.c
@@ -168,15 +168,17 @@ usage(void)
{
fprintf(stderr, "pcp_node_info - display a pgpool-II node's information\n\n");
fprintf(stderr, "Usage: pcp_node_info [-d] timeout hostname port# username password nodeID\n");
- fprintf(stderr, "Usage: pcp_node_info -h\n\n");
- fprintf(stderr, " -d, --debug : enable debug message (optional)\n");
- fprintf(stderr, " timeout : connection timeout value in seconds. command exits on timeout\n");
- fprintf(stderr, " hostname : pgpool-II hostname\n");
- fprintf(stderr, " port# : PCP port number\n");
- fprintf(stderr, " username : username for PCP authentication\n");
- fprintf(stderr, " password : password for PCP authentication\n");
- fprintf(stderr, " nodeID : ID of a node to get information for\n");
- fprintf(stderr, " -h, --help : print this help\n");
+ fprintf(stderr, " -d, --debug : enable debug message (optional)\n");
+ fprintf(stderr, " timeout : connection timeout value in seconds. command exits on timeout\n");
+ fprintf(stderr, " hostname : pgpool-II hostname\n");
+ fprintf(stderr, " port# : PCP port number\n");
+ fprintf(stderr, " username : username for PCP authentication\n");
+ fprintf(stderr, " password : password for PCP authentication\n");
+ fprintf(stderr, " nodeID : ID of a node to get information for\n\n");
+ fprintf(stderr, "Usage: pcp_node_info [options]\n");
+ fprintf(stderr, " Options available are:\n");
+ fprintf(stderr, " -h, --help : print this help\n");
+ fprintf(stderr, " -v, --verbose : display one line per information with a header\n");
}
static void
diff --git a/pcp/pcp_proc_info.c b/pcp/pcp_proc_info.c
index ed86aca08..52630c412 100644
--- a/pcp/pcp_proc_info.c
+++ b/pcp/pcp_proc_info.c
@@ -190,15 +190,17 @@ usage(void)
{
fprintf(stderr, "pcp_proc_info - display a pgpool-II child process' information\n\n");
fprintf(stderr, "Usage: pcp_proc_info [-d] timeout hostname port# username password PID\n");
- fprintf(stderr, "Usage: pcp_proc_info -h\n\n");
- fprintf(stderr, " -d, --debug : enable debug message (optional)\n");
- fprintf(stderr, " timeout : connection timeout value in seconds. command exits on timeout\n");
- fprintf(stderr, " hostname : pgpool-II hostname\n");
- fprintf(stderr, " port# : PCP port number\n");
- fprintf(stderr, " username : username for PCP authentication\n");
- fprintf(stderr, " password : password for PCP authentication\n");
- fprintf(stderr, " PID : PID of a child process to get information for\n");
- fprintf(stderr, " -h, --help : print this help\n");
+ fprintf(stderr, " -d, --debug : enable debug message (optional)\n");
+ fprintf(stderr, " timeout : connection timeout value in seconds. command exits on timeout\n");
+ fprintf(stderr, " hostname : pgpool-II hostname\n");
+ fprintf(stderr, " port# : PCP port number\n");
+ fprintf(stderr, " username : username for PCP authentication\n");
+ fprintf(stderr, " password : password for PCP authentication\n");
+ fprintf(stderr, " PID : PID of a child process to get information for\n\n");
+ fprintf(stderr, "Usage: pcp_proc_info [options]\n");
+ fprintf(stderr, " Options available are:\n");
+ fprintf(stderr, " -h, --help : print this help\n");
+ fprintf(stderr, " -v, --verbose : display one line per information with a header\n");
}
static void
[parent: e068eaa7720e]