1 /* @(#) $Id: help.c,v 1.10 2009/11/18 19:07:42 dcid Exp $ */
3 /* Copyright (C) 2009 Trend Micro Inc.
6 * This program is a free software; you can redistribute it
7 * and/or modify it under the terms of the GNU General Public
8 * License (version 3) as published by the FSF - Free Software
12 /* Part of the OSSEC HIDS
13 * Available at http://www.ossec.net/hids/
22 void help(const char *prog)
25 print_out("%s %s - %s (%s)", __name, __version, __author, __contact);
26 print_out("%s", __site);
28 print_out(" %s: -[Vhdt] [-u user] [-g group] [-c config] [-D dir]", prog);
29 print_out(" -V Version and license message");
30 print_out(" -h This help message");
31 print_out(" -d Execute in debug mode");
32 print_out(" -t Test configuration");
33 print_out(" -f Run in foreground");
34 print_out(" -u <user> Run as 'user'");
35 print_out(" -g <group> Run as 'group'");
36 print_out(" -c <config> Read the 'config' file");
37 print_out(" -D <dir> Chroot to 'dir'");
45 print_out("%s %s - %s", __name, __version, __author);
47 print_out("%s",__license);