aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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" {