diff options
author | Marius Kintel <marius@kintel.net> | 2011-11-06 23:59:41 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-11-06 23:59:41 (GMT) |
commit | ba5b0ffc4e7d8f04f0899c3ba8986abb1baddcb7 (patch) | |
tree | e55e5bab68fcd69843eb6afdf582acbda7798849 /src/openscad.cc | |
parent | 0777597522984a6b253f34b2fe4f9e02160731f7 (diff) | |
parent | 58502a2c346d46e1240f32721e00b1ed6a65a324 (diff) |
Merge branch 'master' of https://github.com/openscad/openscad
Diffstat (limited to 'src/openscad.cc')
-rw-r--r-- | src/openscad.cc | 12 |
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]); |