#include "global.h"
#include "clog.h"
extern char compiled[], compiledby[], compilehost[];
static void
Usage()
{
printf( "cLOG is tool for managment syslogd operation with circular logs\n"
"=== %s === %s@%s ===\n\n"
" Syntax: clog [options] <file.log>\n\n"
"\t-i\t\tInit file.log, create and prepare for use\n"
"\t-s <size>\tUse with init for set needed file.log size\n"
"\t-f\t\tForce command\n"
"\n", compiled, compiledby, compilehost);
}
int
main(int argc, char **argv)
{
char ch;
while ((ch = getopt(argc, argv, "hfis:")) != -1)
switch (ch) {
case 'h':
default:
Usage();
return 1;
}
argc -= optind;
argv += optind;
return 0;
}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>