From c5a4af15ff4bef37bf1f939a85e208e241b7f59f Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Fri, 17 Jul 2020 20:08:33 -0700 Subject: [PATCH] fix --ui-dir parsing Thanks Jack Challen for reporting the breakage: https://groups.google.com/g/moonfire-nvr-users/c/WB-TIW3bBZI/m/Gqh-L6I9BgAJ --- src/cmds/run.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmds/run.rs b/src/cmds/run.rs index 01e6498..86a0d27 100644 --- a/src/cmds/run.rs +++ b/src/cmds/run.rs @@ -54,7 +54,7 @@ pub struct Args { db_dir: PathBuf, /// Directory holding user interface files (.html, .js, etc). - #[structopt(default_value = "/usr/local/lib/moonfire-nvr/ui", value_name="path", + #[structopt(long, default_value = "/usr/local/lib/moonfire-nvr/ui", value_name="path", parse(from_os_str))] ui_dir: std::path::PathBuf,