Skip to content

Commit

Permalink
Fix args, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
theanti9 committed Jul 23, 2023
1 parent c5c97ad commit 79beab2
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 24 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,40 @@ Options:
If this is false, the process will exit if existing files at the destination are encountered.
-s, --skip
Skip files that already exist at the destination.
Mutually exlusive with `overwrite`.
-p, --progress
Periodically log progress
-t, --threads <THREADS>
The number of threads to use for search and copy.
Defaults to one per core.
Transfers with mostly large files may benefit from thread counts higher than one per core, depe
nding on the core count and disk throughput.
--copy-if-newer
Copy files that already exist at the destination if the last modified time of the source file i
s more current.
Must be used in conjunction with `skip`
Transfers with mostly large files may benefit from thread counts higher than one per core, depending on the core count and disk throughput.
--copy-if-larger
Copy files that already exist at the destination if the size of the source file is larger than
the destination file.
Must be used in conjunction with `skip`
-c, --continue-on-error
Skip files that encounter an error and continue copying instead of exiting
-h, --help
Print help information (use `-h` for a summary)
-V, --version
Print version information
```
```
4 changes: 2 additions & 2 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ pub struct Args {
/// file is more current.
///
/// Must be used in conjunction with `skip`
#[arg(short, long)]
#[arg(long)]
pub copy_if_newer: bool,

/// Copy files that already exist at the destination if the size of the source file is larger
/// than the destination file.
///
/// Must be used in conjunction with `skip`
#[arg(short, long)]
#[arg(long)]
pub copy_if_larger: bool,

/// Skip files that encounter an error and continue copying instead of exiting.
Expand Down

0 comments on commit 79beab2

Please sign in to comment.