Only retrieve clap arguments as String, don't expect it to be smart

Fixes #94
This commit is contained in:
Frank Denis 2023-01-12 01:14:33 +01:00
parent c9e084b2b4
commit fbf82068d1

View file

@ -232,10 +232,10 @@ pub fn parse_opts(globals: &mut Globals) {
#[cfg(feature = "tls")]
{
globals.tls_cert_path = matches
.get_one::<PathBuf>("tls_cert_path")
.get_one::<String>("tls_cert_path")
.map(PathBuf::from);
globals.tls_cert_key_path = matches
.get_one::<PathBuf>("tls_cert_key_path")
.get_one::<String>("tls_cert_key_path")
.map(PathBuf::from)
.or_else(|| globals.tls_cert_path.clone());
}