Skip to main content

Module cli

Module cli 

Source
Expand description

Common CLI arguments shared by every RCP binary.

Each binary flattens CommonArgs into its own clap struct via #[command(flatten)]. Tool-specific arguments live in the binary itself.

Fields intentionally NOT in this struct, so each binary can document them accurately:

  • chunk_size — rcp/rcpd parse as bytesize::ByteSize (e.g. “16MiB”), others as bare u64.
  • summary — rcpd streams results to the master and never prints a summary.
  • max_open_files — filegen falls back to physical CPU cores instead of 80% of the system rlimit, because random-data generation is CPU-bound.
  • quiet — rcmp’s --quiet also suppresses stdout differences (not just error output), so its help text differs from the other tools.

Structs§

CommonArgs