diff --git a/src/cli/algotest.rs b/src/cli/algotest.rs index 6e4d8e9..207c998 100644 --- a/src/cli/algotest.rs +++ b/src/cli/algotest.rs @@ -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::(), 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::() / (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!(); diff --git a/src/cli/args.rs b/src/cli/args.rs index 9d8886d..d7efa46 100644 --- a/src/cli/args.rs +++ b/src/cli/args.rs @@ -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")