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.
  • quiet — rcmp’s --quiet also suppresses stdout differences (not just error output), so its help text differs from the other tools.

Structs§

CommonArgs

Constants§

FILES_IN_FLIGHT_HELP
Shared help for the file-like operation concurrency setting.

Functions§

parse_files_in_flight_limit
parse_positive_u64
parse_positive_usize