From f3423eea5321b872640e37d34c46c5eb3a9d68d2 Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Thu, 7 Apr 2022 20:56:33 +0200 Subject: [PATCH] fix: fix "from", "to" & "config" cli argument processing --- src/config.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.rs b/src/config.rs index ba57269..c9dc5af 100644 --- a/src/config.rs +++ b/src/config.rs @@ -126,6 +126,7 @@ pub fn config() -> Result { Arg::new("config") .short('c') .long("config") + .allow_invalid_utf8(true) .required(false) .takes_value(true) .help("Path to an audio-conv config file, defaults to \"audio-conv.yaml\""), @@ -134,6 +135,7 @@ pub fn config() -> Result { Arg::new("from") .short('f') .long("from") + .allow_invalid_utf8(true) .required(false) .takes_value(true) .help("\"from\" directory path"), @@ -142,6 +144,7 @@ pub fn config() -> Result { Arg::new("to") .short('t') .long("to") + .allow_invalid_utf8(true) .required(false) .takes_value(true) .help("\"to\" directory path"),