Support --version, --help and --directory cli args #2

Merged
kemitix merged 2 commits from f1-show-versions into main 2024-02-04 13:42:47 +00:00
Showing only changes of commit 1fe6865280 - Show all commits

View file

@ -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)
})?; })?;
} }