From 70e73067aff471bf5a2419dd57f10d212b57672f Mon Sep 17 00:00:00 2001 From: Yury Fedotov Date: Tue, 30 Jul 2024 00:46:38 -0400 Subject: [PATCH] Rename `count` to `n_top` in CLI --- src/cli.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 9741121..4f10b06 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -8,5 +8,5 @@ pub struct Args { /// The number of largest files to find #[clap(short, long, default_value_t = 5)] - pub count: usize, + pub n_top: usize, } diff --git a/src/main.rs b/src/main.rs index 44d3995..f8fc3ad 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,7 +17,7 @@ fn main() { let traverval_output = traverse_directory(&args.directory); let file_count = traverval_output.file_infos.len(); - let largest_files = get_largest_files(&traverval_output.file_infos, &args.count); + let largest_files = get_largest_files(&traverval_output.file_infos, &args.n_top); let dir_count = traverval_output.dir_count; let max_depth = traverval_output.max_depth;