]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm kick: Print usage on bad parameters
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 12 Jan 2022 15:37:30 +0000 (17:37 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 8 Feb 2022 09:48:24 +0000 (10:48 +0100)
src/doveadm/doveadm-kick.c

index b4ebcc2ef81cb035350063a97a69edd43a19d047..2966c803337f1667c4bb921a9cd5be36978399fb 100644 (file)
@@ -110,8 +110,7 @@ static void cmd_kick(struct doveadm_cmd_context *cctx)
        if (!doveadm_cmd_param_str(cctx, "passdb-field", &passdb_field))
                passdb_field = NULL;
        if (!doveadm_cmd_param_array(cctx, "mask", &masks)) {
-               doveadm_exit_code = EX_USAGE;
-               i_error("user and/or ip[/bits] must be specified.");
+               help_ver2(&doveadm_cmd_kick_ver2);
                return;
        }
        ctx.conn_type = cctx->conn_type;