From c408d8887dae315135e980d05653046245260b4f Mon Sep 17 00:00:00 2001 From: "andy.boot" Date: Sun, 9 Feb 2020 13:58:33 +0000 Subject: [PATCH] Update docs for -X flag. -X flag changed subtly with previous pull request. It now requires a directory name and doesn't work on substrings. --- README.md | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 62b652e..ce7403e 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Usage: dust -n 30 (Shows 30 directories not 20) Usage: dust -d 3 (Shows 3 levels of subdirectories) Usage: dust -r (Reverse order of output, with root at the lowest) Usage: dust -x (Only show directories on same filesystem) -Usage: dust -X ignore (Ignore all files and directories containing the string 'ignore') +Usage: dust -X ignore (Ignore all files and directories with the name 'ignore') ``` ``` diff --git a/src/main.rs b/src/main.rs index aec5656..583fdd8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,7 +62,7 @@ fn main() { .takes_value(true) .number_of_values(1) .multiple(true) - .help("Exclude any file or directory with contains this substring."), + .help("Exclude any file or directory with this name."), ) .arg( Arg::with_name("limit_filesystem")