Skip to content

Commit

Permalink
Improved documentation and removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCCF4 committed Feb 22, 2024
1 parent a09946c commit 41e0615
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "photo_sort"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
description = """
A tool to rename and sort photos by its EXIF date. It tries to extract the date
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ Options:
-a, --analysis-mode <ANALYSIS_MODE> The sorting mode, possible values are name_then_exif, exif_then_name, only_name, only_exif. Name analysis tries to extract the date from the file name, Exif analysis tries to extract the date from the EXIF data [default: exif_then_name]
-m, --move-mode <MOVE_MODE> The action mode, possible values are move, copy, hardlink, relative_symlink, absolute_symlink. Move will move the files, Copy will copy the files, Hardlink (alias: hard) will create hardlinks, RelativeSymlink (alias: relsym) will create relative symlinks, AbsoluteSymlink (alias: abssym) will create absolute symlinks [default: move]
-n, --dry-run Dry-run If set, the tool will not move any files but only print the actions it would take
-c, --copy Don't remove source files. If flag set, the source files will be copied instead of moved
-v, --verbose Be verbose, if set, the tool will print more information about the actions it takes. Setting the RUST_LOG env var overrides this flag
-d, --debug Debug, if set, the tool will print debug information (including debug implies setting verbose). Setting the RUST_LOG env var overrides this flag
-h, --help Print help
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
//! -a, --analysis-mode <ANALYSIS_MODE> The sorting mode, possible values are name_then_exif, exif_then_name, only_name, only_exif. Name analysis tries to extract the date from the file name, Exif analysis tries to extract the date from the EXIF data [default: exif_then_name]
//! -m, --move-mode <MOVE_MODE> The action mode, possible values are move, copy, hardlink, relative_symlink, absolute_symlink. Move will move the files, Copy will copy the files, Hardlink (alias: hard) will create hardlinks, RelativeSymlink (alias: relsym) will create relative symlinks, AbsoluteSymlink (alias: abssym) will create absolute symlinks [default: move]
//! -n, --dry-run Dry-run If set, the tool will not move any files but only print the actions it would take
//! -c, --copy Don't remove source files. If flag set, the source files will be copied instead of moved
//! -v, --verbose Be verbose, if set, the tool will print more information about the actions it takes. Setting the RUST_LOG env var overrides this flag
//! -d, --debug Debug, if set, the tool will print debug information (including debug implies setting verbose). Setting the RUST_LOG env var overrides this flag
//! -h, --help Print help
Expand Down
3 changes: 0 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ struct Arguments {
/// If set, the tool will not move any files but only print the actions it would take.
#[arg(short = 'n', long, default_value = "false")]
dry_run: bool,
/// Don't remove source files. If flag set, the source files will be copied instead of moved.
#[arg(short, long, default_value = "false")]
copy: bool,
/// Be verbose, if set, the tool will print more information about the actions it takes. Setting the RUST_LOG env var overrides this flag.
#[arg(short, long, default_value = "false")]
verbose: bool,
Expand Down

0 comments on commit 41e0615

Please sign in to comment.