Skip to content

Commit

Permalink
Rename count to n_top in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-fedotov committed Jul 30, 2024
1 parent 1b162e8 commit 70e7306
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 70e7306

Please sign in to comment.