diff options
| -rw-r--r-- | RELEASE_NOTES | 2 | ||||
| -rw-r--r-- | src/openscad.cc | 12 | 
2 files changed, 13 insertions, 1 deletions
| diff --git a/RELEASE_NOTES b/RELEASE_NOTES index cc6d99e..d67766c 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -30,7 +30,7 @@ o dxf_linear_extrude() and dxf_rotate_extrude() are now deprecated.  o The file, layer, origin and scale parameters to linear_extrude() and rotate_extrude()    are now deprecated. Use an import() child instead.  o import_dxf(), import_stl() and import_off() are now deprecated. Use import() instead. -o When exporting geometry from the cmd-line, use the universal -o option. It will export to the correct file format based on the given suffix (dxf, stl, off). +o When exporting geometry from the cmd-line, use the universal -o option. It will export to the correct file format based on the given suffix (dxf, stl, off). The -x and -s parameters are still working but deprecated.  o F2 and F3 for Save and Reload is now deprecated  OpenSCAD 2011.06 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]); | 
