diff options
author | James Booth <boothj5@gmail.com> | 2015-02-08 00:42:21 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-02-08 00:42:21 +0000 |
commit | e0dfe4832be53987ea5beb5c39e9985d5bc1aa15 (patch) | |
tree | dea2686acb804d795c897695e93c4597e0fb644b /src/main.c | |
parent | bec95afc8b4ba3d86b0a74d68285042c7c40948e (diff) | |
download | profani-tty-e0dfe4832be53987ea5beb5c39e9985d5bc1aa15.tar.gz |
Added code to generate HTML command reference for website
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 13 |
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 }, |