long_help="Minimum size of checked files in bytes, assigning bigger value may speed up searching"
long_help="Minimum size of checked files in bytes; assigning bigger values may speed up searching"
)]
pubminimal_file_size: u64,
#[clap(
@ -103,7 +103,7 @@ pub struct DuplicatesArgs {
value_parser=parse_maximal_file_size,
default_value="18446744073709551615",
help="Maximum size in bytes",
long_help="Maximum size of checked files in bytes, assigning lower value may speed up searching"
long_help="Maximum size of checked files in bytes; assigning lower values may speed up searching"
)]
pubmaximal_file_size: u64,
#[clap(
@ -112,7 +112,7 @@ pub struct DuplicatesArgs {
value_parser=parse_minimal_file_size,
default_value="257144",
help="Minimum cached file size in bytes",
long_help="Minimum size of cached files in bytes, assigning bigger value may speed up the scan but loading the cache will be slower, assigning smaller value may slow down the scan and some files may need to be hashed again but loading the cache will be faster"
long_help="Minimum size of cached files in bytes; assigning bigger values may speed up the scan, but loading the cache will be slower; assigning smaller values may slow down the scan and some files may need to be hashed again, but loading the cache will be faster"
)]
pubminimal_cached_file_size: u64,
#[clap(
@ -121,7 +121,7 @@ pub struct DuplicatesArgs {
default_value="HASH",
value_parser=parse_checking_method_duplicate,
help="Search method (NAME, SIZE, HASH)",
long_help="Methods to search files.\nNAME - Fast but but rarely usable,\nSIZE - Fast but not accurate, checking by the file's size,\nHASH - The slowest method, checking by the hash of the entire file"
long_help="Methods to search files:\nNAME - Fast but but rarely usable;\nSIZE - Fast but not accurate, checking by the file's size;\nHASH - The slowest method, checking by the hash of the entire file."
)]
pubsearch_method: CheckingMethod,
#[clap(flatten)]
@ -188,7 +188,7 @@ pub struct SimilarImagesArgs {
value_parser=parse_minimal_file_size,
default_value="16384",
help="Minimum size in bytes",
long_help="Minimum size of checked files in bytes, assigning bigger value may speed up searching"
long_help="Minimum size of checked files in bytes; assigning bigger values may speed up searching"
)]
pubminimal_file_size: u64,
#[clap(
@ -197,7 +197,7 @@ pub struct SimilarImagesArgs {
value_parser=parse_minimal_file_size,
default_value="18446744073709551615",
help="Maximum size in bytes",
long_help="Maximum size of checked files in bytes, assigning lower value may speed up searching"
long_help="Maximum size of checked files in bytes; assigning lower values may speed up searching"
long_help="Methods to choose similarity level of images which will be considered as duplicated.\n (allowed values: Minimal, VerySmall, Small, Medium, High, VeryHigh)"
long_help="Sets which rows must be equal to set this files as duplicates(may be mixed, but must be divided by commas)."
long_help="Sets which rows must be equal to set these files as duplicates (may be mixed, but must be separated by commas)."
)]
pubmusic_similarity: MusicSimilarity,
#[clap(
@ -264,7 +264,7 @@ pub struct SameMusicArgs {
default_value="TAGS",
value_parser=parse_checking_method_same_music,
help="Search method (CONTENT, TAGS)",
long_help="Methods to search files.\nCONTENT - finds similar audio files by content, TAGS - finds similar images by tags, needs to set"
long_help="Methods to search files:\nCONTENT - finds similar audio files by content;\nTAGS - finds similar images by tags; needs to set"
)]
pubsearch_method: CheckingMethod,
#[clap(
@ -273,7 +273,7 @@ pub struct SameMusicArgs {
value_parser=parse_minimal_file_size,
default_value="8192",
help="Minimum size in bytes",
long_help="Minimum size of checked files in bytes, assigning bigger value may speed up searching"
long_help="Minimum size of checked files in bytes; assigning bigger values may speed up searching"
)]
pubminimal_file_size: u64,
#[clap(
@ -282,7 +282,7 @@ pub struct SameMusicArgs {
value_parser=parse_maximal_file_size,
default_value="18446744073709551615",
help="Maximum size in bytes",
long_help="Maximum size of checked files in bytes, assigning lower value may speed up searching"
long_help="Maximum size of checked files in bytes; assigning lower values may speed up searching"
)]
pubmaximal_file_size: u64,
#[clap(
@ -291,7 +291,7 @@ pub struct SameMusicArgs {
value_parser=parse_minimum_segment_duration,
default_value="10.0",
help="Maximum size in bytes",
long_help="Minimum segment duration, smaller value will finds also shorter similar segments, which may increase false positives number"
long_help="Minimum segment duration; smaller values will find also shorter similar segments, which may increase false positives"
)]
pubminimum_segment_duration: f32,
#[clap(
@ -300,7 +300,7 @@ pub struct SameMusicArgs {
value_parser=parse_maximum_difference,
default_value="2.0",
help="Maximum difference between segments",
long_help="Maximum difference between segments, 0.0 will find only identical segments, 10.0 will find also segments which are almost not similar at all"
long_help="Maximum difference between segments; 0.0 will find only identical segments; 10.0 will find also segments which are almost not similar at all"
#[clap(short = 'T', long, default_value = "0", help = "Limits thread number, 0(default) will use all available threads")]
#[clap(short = 'T', long, default_value = "0", help = "Limits number of threads; 0 (default) will use all available threads")]
pubthread_number: usize,
#[clap(
short,
long,
required=true,
help="Directorie(s) to search",
long_help="List of directorie(s) which will be searched(absolute path)"
help="Directory(ies) to search",
long_help="List of directories which will be searched(absolute path)"
)]
pubdirectories: Vec<PathBuf>,
#[clap(
short,
long,
help="Excluded directorie(s)",
long_help="List of directorie(s) which will be excluded from search(absolute path)"
help="Excluded directory(ies)",
long_help="List of directories which will be excluded from search(absolute path)"
)]
pubexcluded_directories: Vec<PathBuf>,
#[clap(
short='E',
long,
help="Excluded item(s)",
long_help="List of excluded item(s) which contains * wildcard(may be slow, so use -e where possible)"
long_help="List of excluded item(s) which contains * wildcard(may be slow, so use -e where possible)"
)]
pubexcluded_items: Vec<String>,
#[clap(
@ -428,7 +428,7 @@ pub struct CommonCliItems {
long_help="List of checked files with provided extension(s). There are also helpful macros which allow to easy use a typical extensions like:\nIMAGE(\"jpg,kra,gif,png,bmp,tiff,hdr,svg\"),\nTEXT(\"txt,doc,docx,odt,rtf\"),\nVIDEO(\"mp4,flv,mkv,webm,vob,ogv,gifv,avi,mov,wmv,mpg,m4v,m4p,mpeg,3gp\") or\nMUSIC(\"mp3,flac,ogg,tta,wma,webm\")\n "
)]
puballowed_extensions: Vec<String>,
#[clap(short = 'P', long, help = "Excluded file extension(s)", long_help = "List of extensions, that will be removed from search.\n")]
#[clap(short = 'P', long, help = "Excluded file extension(s)", long_help = "List of extensions that will be removed from search.\n")]
pubexcluded_extensions: Vec<String>,
#[clap(flatten)]
pubfile_to_save: FileToSave,
@ -451,26 +451,26 @@ pub struct DMethod {
default_value="NONE",
value_parser=parse_delete_method,
help="Delete method (AEN, AEO, ON, OO, HARD)",
long_help="Methods to delete the files.\nAEN - All files except the newest,\nAEO - All files except the oldest,\nON - Only 1 file, the newest,\nOO - Only 1 file, the oldest\nHARD - create hard link\nNONE - not delete files"
long_help="Methods to delete the files:\nAEN - All files except the newest;\nAEO - All files except the oldest;\nON - Only 1 file, the newest;\nOO - Only 1 file, the oldest;\nHARD - create hard link;\nNONE - do not delete files."
)]
pubdelete_method: DeleteMethod,
}
#[derive(Debug, clap::Args)]
pubstructFileToSave{
#[clap(short, long, value_name = "file-name", help = "Saves the results into the formatted txt file")]
#[clap(short, long, value_name = "file-name", help = "Saves the results into a formatted txt file")]
pubfile_to_save: Option<PathBuf>,
}
#[derive(Debug, clap::Args)]
pubstructJsonCompactFileToSave{
#[clap(short = 'C', long, value_name = "json-file-name", help = "Saves the results into the compact json file")]
#[clap(short = 'C', long, value_name = "json-file-name", help = "Saves the results into a compact json file")]
pubcompact_file_to_save: Option<PathBuf>,
}
#[derive(Debug, clap::Args)]
pubstructJsonPrettyFileToSave{
#[clap(short, long, value_name = "pretty-json-file-name", help = "Saves the results into the pretty json file")]
#[clap(short, long, value_name = "pretty-json-file-name", help = "Saves the results into a pretty json file")]