pub fn args_to_events(args: &Args) -> Vec<CliEvent>Expand description
Convert CLI arguments into a sequence of events.
This function maps each relevant field in the Args struct to a corresponding CliEvent. Events are generated in a deterministic order, with later events taking precedence over earlier ones (last-wins semantics).
§Event Ordering
Events are generated in this order:
- Verbosity flags (–quiet, –full, –debug, -v)
- Preset flags (–quick, –rapid, –long, –standard, –thorough)
- Explicit iteration counts (-D, -R)
- Agent selection (-a, -r, model flags)
- Configuration flags (–no-isolation, –review-depth, etc.)
- Finalization event
This ordering ensures that:
- Explicit overrides (like -D) come after presets and override them
- Last-specified preset wins if multiple are given
§Arguments
args- The parsed CLI arguments from clap
§Returns
A vector of CliEvents representing all specified CLI arguments.