I wanted to check if the exit code was 2 but I could not easily do this because I got a (CmdStatusErr (Other "Non-zero exit code: 2")) instead of Ok(2). The signature of status! is Cmd => Result I32 [CmdStatusErr InternalIOErr.IOErr] while in truth I32 can only be 0, this all together does not really make sense.
Perhaps another function with a different name should be added here.