summaryrefslogtreecommitdiffstats
path: root/src/options.rs
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2020-05-04 13:07:58 +0800
committerSebastian Thiel <sthiel@thoughtworks.com>2020-05-04 13:07:58 +0800
commit9156cf7cac8f91a496f7383940f3ce6140ffe54c (patch)
tree8965c3a980646caacc87af2ceb7ac44de96ee724 /src/options.rs
parenta5988d091b437315a91accd21f6f1b61d21e2e9a (diff)
Add '-x' flag to not cross filesystems
Fixes #3
Diffstat (limited to 'src/options.rs')
-rw-r--r--src/options.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/options.rs b/src/options.rs
index 1a06e45..5b9d604 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -60,6 +60,10 @@ pub struct Args {
#[structopt(short = "l", long)]
pub count_hard_links: bool,
+ /// If set, we will not cross filesystems or traverse mount points
+ #[structopt(short = "x", long)]
+ pub stay_on_filesystem: bool,
+
/// One or more input files or directories. If unset, we will use all entries in the current working directory.
#[structopt(parse(from_os_str))]
pub input: Vec<PathBuf>,