add a debug printing of the example command results

This commit is contained in:
amtoine 2023-02-21 13:34:29 +01:00
parent e89866bedb
commit 2ea8087fbf
No known key found for this signature in database
GPG key ID: 37AAE9B486CFF1AB

View file

@ -209,6 +209,13 @@ fn get_documentation(
} else {
let _ = write!(long_desc, "\n > {}\n", example.example);
}
match &example.result {
Some(result) => {
let _ = write!(long_desc, " {:?}\n", result);
}
None => {}
}
}
long_desc.push('\n');