aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm
diff options
context:
space:
mode:
authorAndrej Zverev <andrej.zverev@gmail.com>2016-12-07 13:32:16 +0300
committerAndrej Zverev <andrej.zverev@gmail.com>2016-12-07 13:32:16 +0300
commitf93250c5c3fd2dfcf7625614b9fc8e13a022e5b0 (patch)
tree913730b00d690aa445114cfc943efc6bd64545ff /src/rspamadm
parentfb1e7c4be20e30275b2dbd38e1bf2990d393fb38 (diff)
downloadrspamd-f93250c5c3fd2dfcf7625614b9fc8e13a022e5b0.tar.gz
rspamd-f93250c5c3fd2dfcf7625614b9fc8e13a022e5b0.zip
respect -u option in cmd line
Diffstat (limited to 'src/rspamadm')
-rw-r--r--src/rspamadm/control.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rspamadm/control.c b/src/rspamadm/control.c
index 2bdccc876..afe10663c 100644
--- a/src/rspamadm/control.c
+++ b/src/rspamadm/control.c
@@ -28,6 +28,7 @@
static gchar *control_path = RSPAMD_DBDIR "/rspamd.sock";
static gboolean json = FALSE;
+static gboolean ucl = TRUE;
static gboolean compact = FALSE;
static gdouble timeout = 1.0;
@@ -53,6 +54,8 @@ static GOptionEntry entries[] = {
"Output json", NULL},
{"compact", 'c', 0, G_OPTION_ARG_NONE, &compact,
"Output compacted", NULL},
+ {"ucl", 'u', 0, G_OPTION_ARG_NONE, &ucl,
+ "Output ucl (default)", NULL},
{"socket", 's', 0, G_OPTION_ARG_STRING, &control_path,
"Use the following socket path", NULL},
{"timeout", 't', 0, G_OPTION_ARG_DOUBLE, &timeout,
@@ -71,7 +74,7 @@ rspamadm_control_help (gboolean full_help)
"Where options are:\n\n"
"-c: output compacted json\n"
"-j: output linted json\n"
- "-u: output ucl\n"
+ "-u: output ucl (default)\n"
"-s: use the following socket instead of " RSPAMD_DBDIR "/rspamd.sock\n"
"-t: set IO timeout (1.0 seconds default)\n"
"--help: shows available options and commands\n\n"