(root: &clap::Command, key: &str, argv: &[OsString])
| 172 | } |
| 173 | |
| 174 | fn command_scope_start(root: &clap::Command, key: &str, argv: &[OsString]) -> usize { |
| 175 | let (resolved, start) = walk_invoked(root, argv); |
| 176 | if resolved == key { |
| 177 | start |
| 178 | } else { |
| 179 | 1 |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | /// `atomic` for the root, `atomic memory new` for a leaf. |
| 184 | fn display_path(root: &clap::Command, key: &str) -> String { |
no test coverage detected