diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-07-20 15:37:33 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-07-20 15:37:33 -0600 |
commit | 5ac80bff8e25be65e96daaf6b7403b11d23d561a (patch) | |
tree | 647d9ca1144dc5df63f99cb8110c089ea1b68133 /components/util/opts.rs | |
parent | 58e9bc6583b6ebbeb27e3b28a6b271ee48cd695a (diff) | |
parent | 4f28c93f4003817305283dcc80bf56db5ce46b02 (diff) | |
download | servo-5ac80bff8e25be65e96daaf6b7403b11d23d561a.tar.gz servo-5ac80bff8e25be65e96daaf6b7403b11d23d561a.zip |
Auto merge of #6666 - glennw:exit-flag, r=larsbergstrom
Restore exit after load command line flag.
Also updates glutin with a crash fix that was exposed by this patch.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6666)
<!-- Reviewable:end -->
Diffstat (limited to 'components/util/opts.rs')
-rw-r--r-- | components/util/opts.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/util/opts.rs b/components/util/opts.rs index 550dd2a408e..2ec9bb43794 100644 --- a/components/util/opts.rs +++ b/components/util/opts.rs @@ -163,6 +163,9 @@ pub struct Opts { /// Whether to run absolute position calculation and display list construction in parallel. pub parallel_display_list_building: bool, + + /// True to exit after the page load (`-x`). + pub exit_after_load: bool, } fn print_usage(app: &str, opts: &[getopts::OptGroup]) { @@ -261,6 +264,7 @@ pub fn default_opts() -> Opts { sniff_mime_types: false, disable_share_style_cache: false, parallel_display_list_building: false, + exit_after_load: false, } } @@ -437,6 +441,7 @@ pub fn from_cmdline_args(args: &[String]) { sniff_mime_types: opt_match.opt_present("sniff-mime-types"), disable_share_style_cache: debug_options.contains(&"disable-share-style-cache"), parallel_display_list_building: debug_options.contains(&"parallel-display-list-building"), + exit_after_load: opt_match.opt_present("x"), }; set(opts); |