summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
authorDavid Reveman <reveman@chromium.org>2018-05-17 15:40:18 -0400
committerchrome-bot <chrome-bot@chromium.org>2018-05-18 10:05:19 -0700
commitf0656b661c97281f56d91e24224334b7e4d6ebc4 (patch)
tree70c263579013d9411ebe71bfe10176617473a0e6 /src/main.rs
parent10668e6387dc1d0764314cb6dea237516aa9c140 (diff)
downloadcrosvm-f0656b661c97281f56d91e24224334b7e4d6ebc4.tar
crosvm-f0656b661c97281f56d91e24224334b7e4d6ebc4.tar.gz
crosvm-f0656b661c97281f56d91e24224334b7e4d6ebc4.tar.bz2
crosvm-f0656b661c97281f56d91e24224334b7e4d6ebc4.tar.lz
crosvm-f0656b661c97281f56d91e24224334b7e4d6ebc4.tar.xz
crosvm-f0656b661c97281f56d91e24224334b7e4d6ebc4.tar.zst
crosvm-f0656b661c97281f56d91e24224334b7e4d6ebc4.zip
virtwl: Fix wayland-dmabuf argument typo.
Remove "enable-" prefix from wayland-dmabuf argument. This prefix is not
used when specifying the argument in run_vm.

BUG=chromium:837209
TEST=crosvm usage output matches what is a valid argument

Change-Id: Ib9402842c6ce58b4b3d1646c0df3acb5c5de4b0c
Reviewed-on: https://chromium-review.googlesource.com/1064725
Commit-Ready: David Reveman <reveman@chromium.org>
Tested-by: David Reveman <reveman@chromium.org>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 7c248e2..724fc7a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -274,9 +274,9 @@ fn set_argument(cfg: &mut Config, name: &str, value: Option<&str>) -> argument::
             cfg.wayland_socket_path = Some(wayland_socket_path);
         }
         #[cfg(feature = "wl-dmabuf")]
-        "enable-wayland-dmabuf" => {
+        "wayland-dmabuf" => {
             cfg.wayland_dmabuf = true
-        },
+        }
         "socket" => {
             if cfg.socket_path.is_some() {
                 return Err(argument::Error::TooManyArguments("`socket` already given".to_owned()));