From 5e096fa82a4adccb0863f4ff38b01b5f6952d157 Mon Sep 17 00:00:00 2001 From: saneyuki_s Date: Sun, 23 Jun 2013 19:05:26 +0900 Subject: [PATCH] Show the error massage if 'o' option is passed. --- src/components/gfx/opts.rs | 4 ++++ 1 file changed, 4 insertions(+) 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" {