summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
authorDylan Reid <dgreid@chromium.org>2017-10-02 19:03:52 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-10-03 17:28:26 -0700
commite026ef09181775c3ab5f40157335337b90a5b536 (patch)
tree8f9ea5fd8062606dd8885276823bfb7bc698a306 /src/main.rs
parent6eb67123f9be45c4b753a2bcd50f8a4400b6e579 (diff)
downloadcrosvm-e026ef09181775c3ab5f40157335337b90a5b536.tar
crosvm-e026ef09181775c3ab5f40157335337b90a5b536.tar.gz
crosvm-e026ef09181775c3ab5f40157335337b90a5b536.tar.bz2
crosvm-e026ef09181775c3ab5f40157335337b90a5b536.tar.lz
crosvm-e026ef09181775c3ab5f40157335337b90a5b536.tar.xz
crosvm-e026ef09181775c3ab5f40157335337b90a5b536.tar.zst
crosvm-e026ef09181775c3ab5f40157335337b90a5b536.zip
main: use - instead of _ for seccomp policy argument
The other options all user hyphens.

Change-Id: I7f0ab307fd5e50deea8c276bc7a73e43cf692195
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/696714
Reviewed-by: Stephen Barber <smbarber@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 c6e8021..11a0900 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -882,7 +882,7 @@ fn set_argument(cfg: &mut Config, name: &str, value: Option<&str>) -> argument::
                 }
             })?);
         }
-        "seccomp_policy_dir" => {
+        "seccomp-policy-dir" => {
             // Value is Some because we are in this match so it's safe to unwrap.
             cfg.seccomp_policy_dir = Some(value.unwrap().to_owned());
         },
@@ -923,7 +923,7 @@ fn run_vm(args: std::env::Args) {
                                 "Path to put the control socket. If PATH is a directory, a name will be generated."),
           Argument::short_flag('u', "multiprocess", "Run each device in a child process."),
           Argument::value("cid", "CID", "Context ID for virtual sockets"),
-          Argument::value("seccomp_policy_dir", "PATH", "Path to seccomp .policy files."),
+          Argument::value("seccomp-policy-dir", "PATH", "Path to seccomp .policy files."),
           Argument::short_flag('h', "help", "Print help message.")];
 
     let mut cfg = Config::default();