public static CmdReader GetReader(string[] args = null) { if (instance == null && args != null) { instance = new CmdReader(args); } return(instance); }
public ConfigLoader(string[] args) { try { CmdReader.GetReader(args); configParser = ConfigParser.GetConfig(); configParser.Init(); } #if DEBUG catch (Exception e) #else catch (Exception) #endif { #if DEBUG Logger.GetLogger().Error("Configuration error - " + e); #endif } }