Skip to main content

parse_args

Function parse_args 

Source
pub fn parse_args(args: &[String]) -> Result<CliConfig, CliError>
Expand description

Strict rules:

  • Unknown flags are rejected.
  • Flags requiring a value must have one.
  • --data-dir implies durable mode; --ephemeral is explicit memory-only.
  • --require-integrity-key without a readable key path is rejected at parse time if the path is provided here; otherwise the caller validates file existence/length after parsing.
  • Provider URLs must be http or https.