public RemoteDataServerProgramOptions()
        {
            listenIPAddress = new CLGenericArgument <IPAddress>(IPAddress.Parse, 'l', "Listen IP Address");
            listenIPAddress.SetDefault(IPAddress.Parse("0.0.0.0"));
            Add(listenIPAddress);

            npcListenPort = new CLGenericArgument <UInt16>(UInt16.Parse, 'n', "NpcListenPort", "The TCP port that the NPC server will be listening to (If no port is specified, the NPC server will not be running)");
            Add(npcListenPort);

            logFile = new CLStringArgument('f', "LogFile", "Log file (logs to stdout if not specified)");
            Add(logFile);

            logLevel = new CLEnumArgument <LogLevel>('v', "LogLevel", "Level of statements to log");
            logLevel.SetDefault(LogLevel.None);
            Add(logLevel);
        }
Example #2
0
 public Options()
 {
     community = new CLStringArgument('c', "community", "The SNMP community");
     community.SetDefault("public");
     Add(community);
 }