[Openvas-commits] r3266 - trunk/winslad
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed May 6 23:58:36 CEST 2009
Author: doj
Date: 2009-05-06 23:58:36 +0200 (Wed, 06 May 2009)
New Revision: 3266
Modified:
trunk/winslad/main.cpp
Log:
added better GPL comment
Modified: trunk/winslad/main.cpp
===================================================================
--- trunk/winslad/main.cpp 2009-05-06 21:57:35 UTC (rev 3265)
+++ trunk/winslad/main.cpp 2009-05-06 21:58:36 UTC (rev 3266)
@@ -79,12 +79,14 @@
/** print help screen then terminate program.
@param arg0 first command line argument (executable name)
*/
-static void print_help(char *arg0)
+static void print_help()
{
- assert(arg0);
-
- printf ("WinSLAD %s http://openvas.org/ http://www.dn-systems.org/slad.shtml\r\n", SLADD_VERSION);
- printf ("Usage: %s [OPTION...]\r\n", basename (arg0));
+ printf ("WinSLAD %s, Copyright (C) 2009 Greenbone Networks GmbH\r\n"
+ "WinSLAD comes with ABSOLUTELY NO WARRANTY; for details see gpl-2.0.txt\r\n"
+ "This is free software, and you are welcome to redistribute it under certain\r\n"
+ "conditions. For more information visit http://openvas.org/ and\r\n"
+ "http://www.dn-systems.org/slad.shtml\r\n", SLADD_VERSION);
+ printf ("Usage: sladd.exe [OPTION...]\r\n");
printf ("-p, --pluginpath=%-21s plug-in directory\r\n", SLADD_PLUGIN_PATH);
printf ("-R, --resultpath=%-21s results directory\r\n", SLADD_RESULT_PATH);
printf ("-s, --show=plugins|jobs|<resultid> display status\r\n"
@@ -134,7 +136,7 @@
switch (i) {
case 'h':
- print_help (argv[0]); /* never returns */
+ print_help (); /* never returns */
break;
case 'p':
config->pluginpath = optarg;
@@ -173,7 +175,7 @@
// if no action, then print helpscreen
if (!config->command)
- print_help (argv[0]);
+ print_help ();
return 0;
}
More information about the Openvas-commits
mailing list