Revision: 8104
          http://playerstage.svn.sourceforge.net/playerstage/?rev=8104&view=rev
Author:   thjc
Date:     2009-07-23 18:38:25 +0000 (Thu, 23 Jul 2009)

Log Message:
-----------
actually tell getopt it should accept the -l option

Modified Paths:
--------------
    code/player/trunk/server/server.cc

Modified: code/player/trunk/server/server.cc
===================================================================
--- code/player/trunk/server/server.cc  2009-07-23 18:27:31 UTC (rev 8103)
+++ code/player/trunk/server/server.cc  2009-07-23 18:38:25 UTC (rev 8104)
@@ -415,7 +415,7 @@
   fprintf(stderr, "  -p <port>      : port where Player will listen. "
           "Default: %d\n", PLAYERTCP_DEFAULT_PORT);
   fprintf(stderr, "  -q             : quiet mode: minimizes the console output 
on startup.\n");
-  fprintf(stderr, "  -l <logfile>   : log player output to the specified 
file");
+  fprintf(stderr, "  -l <logfile>   : log player output to the specified 
file\n");
   fprintf(stderr, "  <configfile>   : load the the indicated config file\n");
   fprintf(stderr, "\nThe following %d drivers were compiled into Player:\n\n   
 ",
           driverTable->Size());
@@ -439,7 +439,7 @@
           int argc, char** argv)
 {
   int ch;
-  const char* optflags = "d:p:hq";
+  const char* optflags = "d:p:l:hq";
 
   // Get letter options
   while((ch = getopt(argc, argv, optflags)) != -1)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
Playerstage-commit mailing list
Playerstage-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to