All of lore.kernel.org
 help / color / mirror / Atom feed
* [conntrack-tools PATCH 1/4] src/main: refresh help message
@ 2016-08-30 12:20 Arturo Borrero Gonzalez
  2016-08-30 12:20 ` [conntrack-tools PATCH 2/4] conntrackd.8: refresh file Arturo Borrero Gonzalez
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Arturo Borrero Gonzalez @ 2016-08-30 12:20 UTC (permalink / raw)
  To: netfilter-devel

It seems there are two kind of options:
 * general commands (-d, -v, -h, -C)
 * client commands (which requires another conntrackd instance)

Refresh the help message to better reflect this.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
---
 src/main.c |   20 ++++++++------------
 1 file changed, 8 insertions(+), 12 deletions(-)

diff --git a/src/main.c b/src/main.c
index d12fe18..2be9b2f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -36,9 +36,12 @@
 struct ct_general_state st;
 struct ct_state state;
 
-static const char usage_daemon_commands[] =
-	"Daemon mode commands:\n"
-	"  -d [options]\t\tRun in daemon mode\n";
+static const char usage_general_commands[] =
+	"General commands:\n"
+	"  -d, run in daemon mode\n"
+	"  -C [configfile], configuration file path\n"
+	"  -v, display conntrackd version\n"
+	"  -h, display this help information\n";
 
 static const char usage_client_commands[] =
 	"Client mode commands:\n"
@@ -54,22 +57,15 @@ static const char usage_client_commands[] =
 	"  -n, request resync with other node (only FT-FW and NOTRACK modes)\n"
 	"  -B, force a bulk send to other replica firewalls\n"
 	"  -x, dump cache in XML format (requires -i or -e)\n"
-	"  -t, reset the kernel timeout (see PurgeTimeout clause)\n"
-	"  -v, display conntrackd version\n"
-	"  -h, display this help information\n";
-
-static const char usage_options[] =
-	"Options:\n"
-	"  -C [configfile], configuration file path\n";
+	"  -t, reset the kernel timeout (see PurgeTimeout clause)\n";
 
 static void
 show_usage(char *progname)
 {
 	fprintf(stdout, "Connection tracking userspace daemon v%s\n", VERSION);
 	fprintf(stdout, "Usage: %s [commands] [options]\n\n", progname);
-	fprintf(stdout, "%s\n", usage_daemon_commands);
+	fprintf(stdout, "%s\n", usage_general_commands);
 	fprintf(stdout, "%s\n", usage_client_commands);
-	fprintf(stdout, "%s\n", usage_options);
 }
 
 static void


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-09-05 12:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-30 12:20 [conntrack-tools PATCH 1/4] src/main: refresh help message Arturo Borrero Gonzalez
2016-08-30 12:20 ` [conntrack-tools PATCH 2/4] conntrackd.8: refresh file Arturo Borrero Gonzalez
2016-09-05 12:21   ` Pablo Neira Ayuso
2016-08-30 12:20 ` [conntrack-tools PATCH 3/4] conntrackd.8: add reference to systemd Arturo Borrero Gonzalez
2016-09-05 12:21   ` Pablo Neira Ayuso
2016-08-30 12:20 ` [conntrack-tools PATCH 4/4] doc/manual/conntrack-tools: include some bits about init systems Arturo Borrero Gonzalez
2016-08-30 21:11   ` Rami Rosen
2016-09-05 12:21 ` [conntrack-tools PATCH 1/4] src/main: refresh help message Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.