summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-11-06 21:13:31 (GMT)
committerMarius Kintel <marius@kintel.net>2011-11-06 21:13:31 (GMT)
commitf8090c2a534c2efccaabd9e6fa2308895aa94db6 (patch)
tree1c9116a96b04f884a348fcdcc35a0496cb6d9acc /src
parent86884456d9a85c1d88672691f99d99ffed9b6106 (diff)
Reinstated old -x and -s cmd-line parameters for backwards compatibility
Diffstat (limited to 'src')
-rw-r--r--src/openscad.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/openscad.cc b/src/openscad.cc
index 678d87a..d708a8e 100644
--- a/src/openscad.cc
+++ b/src/openscad.cc
@@ -134,6 +134,8 @@ int main(int argc, char **argv)
("help,h", "help message")
("version,v", "print the version")
("o,o", po::value<string>(), "out-file")
+ ("s,s", po::value<string>(), "stl-file")
+ ("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");
@@ -160,6 +162,16 @@ int main(int argc, char **argv)
if (output_file) help(argv[0]);
output_file = vm["o"].as<string>().c_str();
}
+ if (vm.count("s")) {
+ fprintf(stderr, "DEPRECATED: The -s option is deprecated. Use -o instead.\n");
+ if (output_file) help(argv[0]);
+ output_file = vm["s"].as<string>().c_str();
+ }
+ if (vm.count("x")) {
+ fprintf(stderr, "DEPRECATED: The -x option is deprecated. Use -o instead.\n");
+ if (output_file) help(argv[0]);
+ output_file = vm["x"].as<string>().c_str();
+ }
if (vm.count("d")) {
if (deps_output_file)
help(argv[0]);
contact: Jan Huwald // Impressum