pub fn preprocess_args(raw: impl Iterator<Item = String>) -> Vec<String>Expand description
Pre-process raw CLI arguments to handle GNU sed’s -i[SUFFIX] syntax.
Transforms: -i → –in-place -i.bak → –in-place=.bak -iSUFFIX → –in-place=SUFFIX
This is needed because clap can’t natively handle optional short-flag values that must be attached (no space) like GNU sed’s -i.