Changeset

5655:6d7f7548b2c9

prosodyctl: Add 'prosodyctl check --help'
author Kim Alvefur <zash@zash.se>
date Fri, 07 Jun 2013 20:05:23 +0200
parents 5654:020c5cd6eb28
children 5656:576488cffc3a
files prosodyctl
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/prosodyctl	Fri Jun 07 14:20:13 2013 -0400
+++ b/prosodyctl	Fri Jun 07 20:05:23 2013 +0200
@@ -780,6 +780,10 @@
 end
 
 function commands.check(arg)
+	if arg[1] == "--help" then
+		show_usage([[check]], [[Perform basic checks on your Prosody installation]]);
+		return 1;
+	end
 	local what = table.remove(arg, 1);
 	local array, set = require "util.array", require "util.set";
 	local it = require "util.iterators";