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" {