summaryrefslogtreecommitdiff
path: root/src/openscad.cc
diff options
context:
space:
mode:
authorTorsten Paul <Torsten.Paul@gmx.de>2014-01-02 22:27:52 (GMT)
committerTorsten Paul <Torsten.Paul@gmx.de>2014-01-02 22:27:52 (GMT)
commit72865e17dae7f51c60e0db54c1aa070f8125f273 (patch)
treee72ca64bb9ec80b330b3c48b1fad9e1d294c50b3 /src/openscad.cc
parent6443df394b7754509ddfd781df7758ba912ebcbd (diff)
Add feature registry.
Diffstat (limited to 'src/openscad.cc')
-rw-r--r--src/openscad.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/openscad.cc b/src/openscad.cc
index ab84235..574e87b 100644
--- a/src/openscad.cc
+++ b/src/openscad.cc
@@ -33,6 +33,7 @@
#include "builtin.h"
#include "printutils.h"
#include "handle_dep.h"
+#include "feature.h"
#include "parsersettings.h"
#include "rendersettings.h"
#include "PlatformUtils.h"
@@ -587,7 +588,8 @@ int main(int argc, char **argv)
("x,x", po::value<string>(), "dxf-file")
("d,d", po::value<string>(), "deps-file")
("m,m", po::value<string>(), "makefile")
- ("D,D", po::value<vector<string> >(), "var=val");
+ ("D,D", po::value<vector<string> >(), "var=val")
+ ("enable-feature", po::value<vector<string> >(), "enable experimental features");
po::options_description hidden("Hidden options");
hidden.add_options()
@@ -651,6 +653,11 @@ int main(int argc, char **argv)
commandline_commands += ";\n";
}
}
+ if (vm.count("enable-feature")) {
+ BOOST_FOREACH(const string &feature, vm["enable-feature"].as<vector<string> >()) {
+ Feature::enable_feature(feature);
+ }
+ }
vector<string> inputFiles;
if (vm.count("input-file")) {
inputFiles = vm["input-file"].as<vector<string> >();
contact: Jan Huwald // Impressum