doveadm.c revision e59faf65ce864fe95dc00f5d52b8323cdbd0608a
/* Copyright (c) 2009-2010 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "master-service.h"
#include "doveadm-mail.h"
#include "doveadm.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
{
}
void usage(void)
{
const struct doveadm_cmd *cmd;
}
exit(1);
}
{
exit(0);
}
{
const struct doveadm_cmd *cmd;
usage();
}
usage();
}
static struct doveadm_cmd doveadm_cmd_help = {
};
{
const struct doveadm_cmd *cmd;
return TRUE;
}
}
return FALSE;
}
{
const char *cmd_name;
int c;
/* "+" is GNU extension to stop at the first non-option.
others just accept -+ option. */
while ((c = master_getopt(master_service)) > 0) {
switch (c) {
case 'D':
break;
case 'v':
break;
default:
return FATAL_DEFAULT;
}
}
usage();
optind = 1;
usage();
return 0;
}