diff --git a/src/arg.rs b/src/arg.rs index 31400f0..0eab1d7 100644 --- a/src/arg.rs +++ b/src/arg.rs @@ -38,6 +38,7 @@ OPTIONS: --threads Limit the maximum number of tasks allowed to process concurrently (Set to 0 for unlimited.) -M Set number of parallel running tasks to unlimited. (Same as `--threads 0`). (default). -m Limit number of parallel tasks to the number of active CPU processors. + -q Quiet mode. Don't output info messages about successful `stat`ing. --save Dump the collected data to this file for further inspection (only available when compiled with feature `inspect`) -D Dump the collected data to `stdout` (see `--save`) (only available when compiled with feature `inspect`) - Stop parsing arguments, treat all the rest as paths. @@ -47,6 +48,8 @@ OPTIONS: NOTES: The first time a non-option argument is encountered, the program stops parsing arguments and assumes the rest of the arguments are paths. If parallelism is set to unlimited, there can be a huge syscall overhead. It is recommended to use `-m`. + + Symlinks are ignored while collection stat data. They will fail with message 'Unknown file type'. Symlinks are generally very small in the actual data they contain themselves, so this is *usually* unimportant. "#); } @@ -100,6 +103,9 @@ fn parse>(args: I) -> eyre::Result "-m" => { cfg.max_tasks = config::max_tasks_cpus(); }, + "-q" => { + cfg.silent = true; + }, #[cfg(feature="inspect")] "-D" => { cfg.serialise_output = Some(None); },