Support --version, --help and --directory cli args #2
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ fn rename_files(directory: &str, base: &str) -> Result<i32> {
|
||||||
let dir = target_path.parent().with_context(|| {
|
let dir = target_path.parent().with_context(|| {
|
||||||
format!("Failed to get parent: {:#?}", target_path)
|
format!("Failed to get parent: {:#?}", target_path)
|
||||||
})?;
|
})?;
|
||||||
create_dir_all(&dir).with_context(|| {
|
create_dir_all(dir).with_context(|| {
|
||||||
format!("Failed to create directory: {:#?}", dir)
|
format!("Failed to create directory: {:#?}", dir)
|
||||||
})?;
|
})?;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue