summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2023-05-06 16:31:14 +0200
committerSebastian Thiel <sebastian.thiel@icloud.com>2023-05-06 16:31:14 +0200
commitb3ed57544bcb9a2aa4c37028f9cd18b5cd8858d4 (patch)
tree8e1f4666cea98f4f63c8927a1e5925bed1aea78e
parent8e51e4f121572a7e6b2b0a2bb3505a2015f3f97f (diff)
fix!: rename `--stay-on-filesystem` to `--one-file-system`.
That way it's similar to `gdu` or `du`.
-rw-r--r--src/main.rs8
-rw-r--r--src/options.rs2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index 4169736..32b4a08 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -19,7 +19,7 @@ fn main() -> Result<()> {
apparent_size: opt.apparent_size,
count_hard_links: opt.count_links,
sorting: TraversalSorting::None,
- cross_filesystems: !opt.stay_on_filesystem,
+ cross_filesystems: !opt.one_file_system,
ignore_dirs: opt.ignore_dirs,
};
let res = match opt.command {
@@ -41,7 +41,7 @@ fn main() -> Result<()> {
let res = TerminalApp::initialize(
&mut terminal,
walk_options,
- paths_from(input, !opt.stay_on_filesystem)?,
+ paths_from(input, !opt.one_file_system)?,
Interaction::Full,
)?
.map(|(keys_rx, mut app)| {
@@ -93,7 +93,7 @@ fn main() -> Result<()> {
walk_options,
!no_total,
!no_sort,
- paths_from(input, !opt.stay_on_filesystem)?,
+ paths_from(input, !opt.one_file_system)?,
)?;
if statistics {
writeln!(io::stderr(), "{:?}", stats).ok();
@@ -109,7 +109,7 @@ fn main() -> Result<()> {
walk_options,
true,
true,
- paths_from(opt.input, !opt.stay_on_filesystem)?,
+ paths_from(opt.input, !opt.one_file_system)?,
)?
.0
}
diff --git a/src/options.rs b/src/options.rs
index 260396e..cab6dfb 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -67,7 +67,7 @@ pub struct Args {
/// If set, we will not cross filesystems or traverse mount points
#[clap(short = 'x', long)]
- pub stay_on_filesystem: bool,
+ pub one_file_system: bool,
/// One or more absolute directories to ignore. Note that these are not ignored if they are passed as input path.
///