mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
Show the error massage if 'o' option is passed.
This commit is contained in:
parent
9f34278931
commit
5e096fa82a
1 changed files with 4 additions and 0 deletions
|
@ -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" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue