- printf("\n");
- printf("Rootcheck v0.8 (Mar/12/2008):\n");
- printf("http://www.ossec.net/rootcheck/\n");
- printf("Available options:\n");
- printf("\t\t-h\t This Help message\n");
- printf("\t\t-c <file> Configuration file\n");
- printf("\t\t-d\t Enable debug\n");
- printf("\t\t-D <dir> Set the working directory\n");
- printf("\t\t-s\t Scans the whole system\n");
- printf("\t\t-r\t Read all the files for kernel-based detection\n");
- printf("\n");
- exit(0);
+ print_header();
+ print_out(" %s: -[Vhdtsr] [-c config] [-D dir]", ARGV0);
+ print_out(" -V Version and license message");
+ print_out(" -h Print this help message");
+ print_out(" -d Execute in debug mode. This parameter");
+ print_out(" can be specified multiple times");
+ print_out(" to increase the debug level.");
+ print_out(" -t Test configuration");
+ print_out(" -s Scan the whole system");
+ print_out(" -r Read all the files for kernel-based detection");
+ print_out(" -c <config> Configuration file to use");
+ print_out(" -D <dir> Directory to chroot into (default: %s)", DEFAULTDIR);
+ print_out(" ");
+ exit(1);