Emit the machine-parseable redirect to stderr and exit non-zero (2). Agent-oriented by construction: one `key: value` datum per line, stable keys (`removed`/`use`/`verbs`/`run`/`help`), no styling. Exiting 2 (a usage error, distinct from 1) tells the caller the command did not run.
(removed: &str, family: &str, verbs: &str, run: &str)
| 85 | /// keys (`removed`/`use`/`verbs`/`run`/`help`), no styling. Exiting 2 (a usage |
| 86 | /// error, distinct from 1) tells the caller the command did not run. |
| 87 | fn emit_removed(removed: &str, family: &str, verbs: &str, run: &str) -> CliResult<()> { |
| 88 | eprintln!("removed: {removed}"); |
| 89 | eprintln!("use: {family}"); |
| 90 | eprintln!("verbs: {verbs}"); |
| 91 | eprintln!("run: {run}"); |
| 92 | eprintln!("help: {family} --help"); |
| 93 | std::process::exit(2); |
| 94 | } |