From e026ef09181775c3ab5f40157335337b90a5b536 Mon Sep 17 00:00:00 2001 From: Dylan Reid Date: Mon, 2 Oct 2017 19:03:52 -0700 Subject: [PATCH] main: use - instead of _ for seccomp policy argument The other options all user hyphens. Change-Id: I7f0ab307fd5e50deea8c276bc7a73e43cf692195 Signed-off-by: Dylan Reid Reviewed-on: https://chromium-review.googlesource.com/696714 Reviewed-by: Stephen Barber --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index c6e80214cd..11a0900830 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();