diff --git a/README.md b/README.md index 6a8e0b4..7516ebb 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,26 @@ -# Bulk image metadata setter +# Bulk image Exif metadata Add date to image metadata when missing. Date parsed from file name. ```bash -Usage: set_date_image_metadata +Add date to image Exif metadata when missing + +Usage: set_date_image_metadata [OPTIONS] Arguments: - The path to the file to read + The path to the base directory Options: - -h, --help Print help + -v, --verbose... Increase logging verbosity + -q, --quiet... Decrease logging verbosity + -h, --help Print help ``` -Display the last modification time of FILE +Display Exif metadata ``` -date -r "+%d-%m-%Y %H:%M:%S" +sudo apt install exif +exif picture.jpg ``` diff --git a/src/main.rs b/src/main.rs index dfa4968..8662884 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,13 +5,13 @@ mod datetime_tag_parser; mod datetime_tag_writer; mod stats; -/// Search for a pattern in a file and change modification time from the filename +/// Add date to image Exif metadata when missing. #[derive(Parser)] struct Cli { #[command(flatten)] verbose: clap_verbosity_flag::Verbosity, - /// The path to the file to read + /// The path to the base directory path: std::path::PathBuf, }