diff options
author | Kevin Smith <git@kismith.co.uk> | 2018-03-24 17:40:39 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2018-03-24 17:40:39 (GMT) |
commit | 92bba873587e0cfaf53aff6749d4537b13e275e8 (patch) | |
tree | 6929af5d8eb6a9a2c5a5827b6a0f6a5df056c083 /Swift/QtUI | |
parent | d0fa44684ef84decb9cf567e4ebdf682e7a283f9 (diff) | |
download | swift-92bba873587e0cfaf53aff6749d4537b13e275e8.zip swift-92bba873587e0cfaf53aff6749d4537b13e275e8.tar.bz2 |
Add option for enabling future features
Test-Information:
None
Change-Id: I548a18ff47c45eafda31584858607e5705386911
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/QtSwift.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Swift/QtUI/QtSwift.cpp b/Swift/QtUI/QtSwift.cpp index 28793fa..76e3583 100644 --- a/Swift/QtUI/QtSwift.cpp +++ b/Swift/QtUI/QtSwift.cpp @@ -101,6 +101,8 @@ po::options_description QtSwift::getOptionsDescription() { ("language", po::value<std::string>(), "Use a specific language, instead of the system-wide one") #endif ("logfile", po::value<std::string>()->implicit_value(""), "Save all logging information to a file") + ("enable-future", "Enable future features (unsupported). This will persist across restarts") + ("disable-future", "Disable future features. This will persist across restarts") ; return result; } @@ -185,6 +187,14 @@ QtSwift::QtSwift(const po::variables_map& options) : networkFactories_(&clientMa Log::setLogLevel(Swift::Log::debug); } + if (options.count("enable-future")) { + settingsHierachy_->storeSetting(SettingConstants::FUTURE, true); + } + + if (options.count("disable-future")) { + settingsHierachy_->storeSetting(SettingConstants::FUTURE, false); + } + if (options.count("logfile")) { try { std::string fileName = options["logfile"].as<std::string>(); |