B:BD[
2.257] → [
2.257:499]
if err.kind() == std::io::ErrorKind::NotFound {
writeln!(std::io::stderr(), "No such subcommand: {:?}", cmd).unwrap_or(());
} else {
writeln!(std::io::stderr(), "Error while running {:?}: {}", cmd, err).unwrap_or(());
match err.kind() {
std::io::ErrorKind::NotFound | std::io::ErrorKind::PermissionDenied => {
writeln!(std::io::stderr(), "No such subcommand: {:?}", cmd).unwrap_or(())
}
_ => writeln!(std::io::stderr(), "Error while running {:?}: {}", cmd, err).unwrap_or(()),