Added code to generate HTML command reference for website

This commit is contained in:
James Booth
2015-02-08 00:42:21 +00:00
parent bec95afc8b
commit e0dfe4832b
4 changed files with 64 additions and 7 deletions

View File

@@ -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 },