feat: Add flag to read from file/stdin (#405)

* from standard

* improve

* happy clippy

* explicit arg option

* fix problem
This commit is contained in:
n4n5
2024-06-28 00:51:47 +02:00
committed by GitHub
parent a06a001886
commit 394231683d
10 changed files with 68 additions and 5 deletions
+8
View File
@@ -286,4 +286,12 @@ pub fn build_cli() -> Command {
.value_parser(value_parser!(String))
.help("just like -mtime, but based on file change time")
)
.arg(
Arg::new("files0_from")
.long("files0-from")
.value_hint(clap::ValueHint::AnyPath)
.value_parser(value_parser!(String))
.num_args(1)
.help("run dust on NUL-terminated file names specified in file; if argument is -, then read names from standard input"),
)
}