new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / shared / help.c
old mode 100755 (executable)
new mode 100644 (file)
index 1c79fe3..bcb349e
@@ -1,6 +1,3 @@
-/* @(#) $Id: ./src/shared/help.c, 2011/09/08 dcid Exp $
- */
-
 /* Copyright (C) 2009 Trend Micro Inc.
  * All rights reserved.
  *
  * Foundation
  */
 
-/* Part of the OSSEC HIDS
- * Available at http://www.ossec.net/hids/
- */
-
-/* Help Function
- */
-
+/* Help Function */
 
 #include "shared.h"
 
-void help(const char *prog)
+
+void print_header()
 {
     print_out(" ");
     print_out("%s %s - %s (%s)", __ossec_name, __version, __author, __contact);
     print_out("%s", __site);
-    print_out(" ");
-    print_out("  %s: -[Vhdt] [-u user] [-g group] [-c config] [-D dir]", prog);
-    print_out("    -V          Version and license message");
-    print_out("    -h          This help message");
-    print_out("    -d          Execute in debug mode");
-    print_out("                Can be specified up to two times");
-    print_out("                to increase debug level");
-    print_out("    -t          Test configuration");
-    print_out("    -f          Run in foreground");
-    print_out("    -u <user>   Run as 'user'");
-    print_out("    -g <group>  Run as 'group'");
-    print_out("    -c <config> Read the 'config' file");
-    print_out("    -D <dir>    Chroot to 'dir'");
-    print_out(" ");
-    exit(1);
 }
 
 void print_version()
@@ -47,8 +24,6 @@ void print_version()
     print_out(" ");
     print_out("%s %s - %s", __ossec_name, __version, __author);
     print_out(" ");
-    print_out("%s",__license);
+    print_out("%s", __license);
     exit(1);
 }
-
-/* EOF */