about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-02-08 00:42:21 +0000
committerJames Booth <boothj5@gmail.com>2015-02-08 00:42:21 +0000
commite0dfe4832be53987ea5beb5c39e9985d5bc1aa15 (patch)
treedea2686acb804d795c897695e93c4597e0fb644b /src/main.c
parentbec95afc8b4ba3d86b0a74d68285042c7c40948e (diff)
downloadprofani-tty-e0dfe4832be53987ea5beb5c39e9985d5bc1aa15.tar.gz
Added code to generate HTML command reference for website
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index f3b6a17f..7ee5affe 100644
--- a/src/main.c
+++ b/src/main.c
@@ -40,13 +40,7 @@
 #endif
 
 #include "profanity.h"
-
-#ifdef HAVE_LIBOTR
-#include "otr/otr.h"
-#endif
-#include "xmpp/xmpp.h"
-
-#include "ui/ui.h"
+#include "command/command.h"
 
 static gboolean disable_tls = FALSE;
 static gboolean version = FALSE;
@@ -56,6 +50,11 @@ static char *account_name = NULL;
 int
 main(int argc, char **argv)
 {
+    if (argc == 2 && g_strcmp0(argv[1], "docgen") == 0 && g_strcmp0(PACKAGE_STATUS, "development") == 0) {
+        command_docgen();
+        return 0;
+    }
+
     static GOptionEntry entries[] =
     {
         { "version", 'v', 0, G_OPTION_ARG_NONE, &version, "Show version information", NULL },