First non-flag token an agent typed after the removed command (its old verb, e.g. `create`), used to tailor the `run:` redirect. Empty if none.
(args: &[String])
| 73 | /// First non-flag token an agent typed after the removed command (its old |
| 74 | /// verb, e.g. `create`), used to tailor the `run:` redirect. Empty if none. |
| 75 | fn first_verb(args: &[String]) -> &str { |
| 76 | args.iter() |
| 77 | .map(String::as_str) |
| 78 | .find(|a| !a.starts_with('-')) |
| 79 | .unwrap_or("") |
| 80 | } |
| 81 | |
| 82 | /// Emit the machine-parseable redirect to stderr and exit non-zero (2). |
| 83 | /// |