1 /* @(#) $Id: ./src/shared/help.c, 2011/09/08 dcid Exp $
4 /* Copyright (C) 2009 Trend Micro Inc.
7 * This program is a free software; you can redistribute it
8 * and/or modify it under the terms of the GNU General Public
9 * License (version 2) as published by the FSF - Free Software
13 /* Part of the OSSEC HIDS
14 * Available at http://www.ossec.net/hids/
23 void help(const char *prog)
26 print_out("%s %s - %s (%s)", __ossec_name, __version, __author, __contact);
27 print_out("%s", __site);
29 print_out(" %s: -[Vhdt] [-u user] [-g group] [-c config] [-D dir]", prog);
30 print_out(" -V Version and license message");
31 print_out(" -h This help message");
32 print_out(" -d Execute in debug mode");
33 print_out(" Can be specified up to two times");
34 print_out(" to increase debug level");
35 print_out(" -t Test configuration");
36 print_out(" -f Run in foreground");
37 print_out(" -u <user> Run as 'user'");
38 print_out(" -g <group> Run as 'group'");
39 print_out(" -c <config> Read the 'config' file");
40 print_out(" -D <dir> Chroot to 'dir'");
48 print_out("%s %s - %s", __ossec_name, __version, __author);
50 print_out("%s",__license);