Show the error massage if 'o' option is passed.

This commit is contained in:
saneyuki_s 2013-06-23 19:05:26 +09:00
parent 9f34278931
commit 5e096fa82a

View file

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