fix: fix "from", "to" & "config" cli argument processing
This commit is contained in:
@@ -126,6 +126,7 @@ pub fn config() -> Result<Config> {
|
|||||||
Arg::new("config")
|
Arg::new("config")
|
||||||
.short('c')
|
.short('c')
|
||||||
.long("config")
|
.long("config")
|
||||||
|
.allow_invalid_utf8(true)
|
||||||
.required(false)
|
.required(false)
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.help("Path to an audio-conv config file, defaults to \"audio-conv.yaml\""),
|
.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")
|
Arg::new("from")
|
||||||
.short('f')
|
.short('f')
|
||||||
.long("from")
|
.long("from")
|
||||||
|
.allow_invalid_utf8(true)
|
||||||
.required(false)
|
.required(false)
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.help("\"from\" directory path"),
|
.help("\"from\" directory path"),
|
||||||
@@ -142,6 +144,7 @@ pub fn config() -> Result<Config> {
|
|||||||
Arg::new("to")
|
Arg::new("to")
|
||||||
.short('t')
|
.short('t')
|
||||||
.long("to")
|
.long("to")
|
||||||
|
.allow_invalid_utf8(true)
|
||||||
.required(false)
|
.required(false)
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.help("\"to\" directory path"),
|
.help("\"to\" directory path"),
|
||||||
|
|||||||
Reference in New Issue
Block a user