diff --git a/crates/ptth_server/src/bin/ptth_server.rs b/crates/ptth_server/src/bin/ptth_server.rs index a6109da..f364a4f 100644 --- a/crates/ptth_server/src/bin/ptth_server.rs +++ b/crates/ptth_server/src/bin/ptth_server.rs @@ -14,8 +14,8 @@ use ptth_server::{ #[derive (Debug, StructOpt)] struct Opt { - //#[structopt (long)] - //file_server_root: Option , + #[structopt (long)] + file_server_root: Option , #[structopt (long)] asset_root: Option , @@ -54,7 +54,7 @@ fn main () -> Result <(), anyhow::Error> { name: opt.name.or (config_file.name).expect ("`name` must be provided in command line or config file"), api_key: config_file.api_key, relay_url: opt.relay_url.or (config_file.relay_url).expect ("`relay_url` must be provided in command line of config file"), - file_server_root: config_file.file_server_root, + file_server_root: opt.file_server_root.or (config_file.file_server_root), }; if opt.print_tripcode {