[bwm-tools-devel] COMMIT - r10 - trunk/bwmd
Brought to you by:
nkukard
From: <bwm...@li...> - 2004-12-29 10:21:02
|
Author: nkukard Date: 2004-12-29 12:20:50 +0200 (Wed, 29 Dec 2004) New Revision: 10 Modified: trunk/bwmd/bwmd.c Log: * Updated copyright version * Added a check to find out if we were supplied invalid arguments Modified: trunk/bwmd/bwmd.c =================================================================== --- trunk/bwmd/bwmd.c 2004-12-28 15:22:33 UTC (rev 9) +++ trunk/bwmd/bwmd.c 2004-12-29 10:20:50 UTC (rev 10) @@ -92,7 +92,7 @@ }; - printf("BWM Daemon v%s - Copyright (c) 2003 Linux Based Systems Design\n\n",PACKAGE_VERSION); + printf("BWM Daemon v%s - Copyright (c) 2003-2004 Linux Based Systems Design\n\n",PACKAGE_VERSION); // Loop with options while (1) @@ -116,7 +116,10 @@ case 'h': // FIXME - version from CVS printf("Usage: %s [-h|--help] [--config=<config_file>] [--foreground]\n",argv[0]); - return(0); + return 0; + default: + printf("Usage: %s [-h|--help] [--config=<config_file>] [--foreground]\n",argv[0]); + return 1; } } |