fix: fix "from", "to" & "config" cli argument processing

This commit is contained in:
2022-04-07 20:56:33 +02:00
parent 80e3d02cb4
commit f3423eea53

View File

@@ -126,6 +126,7 @@ pub fn config() -> Result<Config> {
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<Config> {
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<Config> {
Arg::new("to")
.short('t')
.long("to")
.allow_invalid_utf8(true)
.required(false)
.takes_value(true)
.help("\"to\" directory path"),