aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2013-06-24 14:24:26 -0700
committerbors-servo <release+servo@mozilla.com>2013-06-24 14:24:26 -0700
commit033af01283234dd2cc423f2018d0d348849f4720 (patch)
tree0f5fbaa19afb379737a0277d596a05872452e8f1
parent6df102a117596922055aa3c9d47ffe8c77daf6a0 (diff)
parent5e096fa82a4adccb0863f4ff38b01b5f6952d157 (diff)
downloadservo-033af01283234dd2cc423f2018d0d348849f4720.tar.gz
servo-033af01283234dd2cc423f2018d0d348849f4720.zip
auto merge of #535 : saneyuki/servo/o-opt, r=metajack
I think that we should show the error message until we restore the feature outputting the rendering result to a file.
-rw-r--r--src/components/gfx/opts.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/gfx/opts.rs b/src/components/gfx/opts.rs
index 07c38f9a1bf..329dffa03b4 100644
--- a/src/components/gfx/opts.rs
+++ b/src/components/gfx/opts.rs
@@ -45,6 +45,10 @@ pub fn from_cmdline_args(args: &[~str]) -> Opts {
copy opt_match.free
};
+ if getopts::opt_present(&opt_match, ~"o") {
+ fail!(~"servo cannot treat 'o' option now.")
+ }
+
let render_backend = match getopts::opt_maybe_str(&opt_match, ~"r") {
Some(backend_str) => {
if backend_str == ~"direct2d" {