Rearranged arguments to be SRC, DST

This commit is contained in:
Dennis Schwerdel 2017-03-18 16:37:45 +01:00 committed by Dennis Schwerdel
parent 8001c0ef83
commit 032848466f
2 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ pub fn run(path: &str, bundle_size: usize, chunker: ChunkerType, compression: Op
assert_eq!(chunks.iter().map(|c| c.1).sum::<usize>(), size as usize);
let chunk_size_avg = size as f32 / chunks.len() as f32;
let chunk_size_stddev = (chunks.iter().map(|c| (c.1 as f32 - chunk_size_avg).powi(2)).sum::<f32>() / (chunks.len() as f32 - 1.0)).sqrt();
println!("- {} chunks, avg size: {}, stddev: {}", chunks.len(), to_file_size(chunk_size_avg as u64), to_file_size(chunk_size_stddev as u64));
println!("- {} chunks, avg size: {} ±{}", chunks.len(), to_file_size(chunk_size_avg as u64), to_file_size(chunk_size_stddev as u64));
println!();

View File

@ -145,8 +145,8 @@ pub fn parse() -> Arguments {
(@subcommand backup =>
(about: "creates a new backup")
(@arg full: --full "create a full backup")
(@arg BACKUP: +required "repository::backup path")
(@arg SRC: +required "source path to backup")
(@arg BACKUP: +required "repository::backup path")
)
(@subcommand restore =>
(about: "restores a backup (or subpath)")
@ -177,8 +177,8 @@ pub fn parse() -> Arguments {
)
(@subcommand import =>
(about: "reconstruct a repository from the remote files")
(@arg REPO: +required "path of the local repository to create")
(@arg REMOTE: +required "remote repository path")
(@arg REPO: +required "path of the local repository to create")
)
(@subcommand info =>
(about: "displays information on a repository, a backup or a path in a backup")