summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2023-05-06 16:20:10 +0200
committerSebastian Thiel <sebastian.thiel@icloud.com>2023-05-06 16:20:10 +0200
commit8e51e4f121572a7e6b2b0a2bb3505a2015f3f97f (patch)
tree4ca9538632b2706f5129418a7b6c2aa109222f62
parentdf619d9483ae11b9ef3d457011dd3fe27cc7e3a8 (diff)
fix!: rename `--count-hard-links` to `--count-link`.
This makes it similar to the argument in `du` and `gdu`.
-rw-r--r--src/main.rs2
-rw-r--r--src/options.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index ce1e997..4169736 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -17,7 +17,7 @@ fn main() -> Result<()> {
threads: opt.threads,
byte_format: opt.format.into(),
apparent_size: opt.apparent_size,
- count_hard_links: opt.count_hard_links,
+ count_hard_links: opt.count_links,
sorting: TraversalSorting::None,
cross_filesystems: !opt.stay_on_filesystem,
ignore_dirs: opt.ignore_dirs,
diff --git a/src/options.rs b/src/options.rs
index 9c6f276..260396e 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -63,7 +63,7 @@ pub struct Args {
/// Count hard-linked files each time they are seen (slower)
#[clap(short = 'l', long)]
- pub count_hard_links: bool,
+ pub count_links: bool,
/// If set, we will not cross filesystems or traverse mount points
#[clap(short = 'x', long)]