]> git.stg.codes - ssmd.git/blobdiff - src/settings.cpp
gssmd -> ssmd.
[ssmd.git] / src / settings.cpp
index 5d04ad230a36ac78b482a9b394eea78d22f61b1b..6e3a7913c5e4b2463b1e169206a5791b49f8a30f 100644 (file)
@@ -1,8 +1,8 @@
 #include "logger.h"
 #include "settings.h"
 
-using GTS::Settings;
-using GTS::SettingsParser;
+using SSMD::Settings;
+using SSMD::SettingsParser;
 
 SettingsParser::SettingsParser()
     : _desc("Allowed options")
@@ -10,17 +10,18 @@ SettingsParser::SettingsParser()
     // Declare the supported options.
     _desc.add_options()
         ("help", "produce help message")
-        ("config,c", po::value<std::string>()->default_value("/etc/gssmd/gssmd.conf"), "config file location")
+        ("config,c", po::value<std::string>()->default_value("/etc/ssmd/ssmd.conf"), "config file location")
         ("daemon,d", "daemonize after start")
-        ("debug", "gssmd debugging")
+        ("debug", "ssmd debugging")
         ("log-file", po::value<std::string>(), "log file location")
         ("pid-file", po::value<std::string>(), "PID file location")
         ("switch-sync-interval,s", po::value<time_t>(), "switch synchronization interval")
         ("info-sync-interval,i", po::value<time_t>(), "info synchronization interval")
         ("up-profile-id", po::value<unsigned>(), "switch's upload profile id")
         ("down-profile-id", po::value<unsigned>(), "switch's download profile id")
+        ("max-acl-per-pdu", po::value<size_t>(), "maximum ACL's per PDU")
         ("data-url", po::value<std::string>(), "data access URL")
-        ("version,v", "show gssmd version and exit")
+        ("version,v", "show ssmd version and exit")
     ;
 }
 
@@ -78,6 +79,10 @@ void SettingsParser::init(int argc, char * argv[])
         _settings._downProfileId = vm["down-profile-id"].as<unsigned>();
     }
 
+    if (vm.count("max-acl-per-pdu")) {
+        _settings._downProfileId = vm["max-acl-per-pdu"].as<unsigned>();
+    }
+
     if (vm.count("data-url")) {
         _settings._dataURL = vm["data-url"].as<std::string>();
     }