We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pvs
dvs
1 parent c1cebf3 commit 9fed5a7Copy full SHA for 9fed5a7
clap_builder/src/output/help_template.rs
@@ -778,22 +778,22 @@ impl HelpTemplate<'_, '_> {
778
a.default_vals
779
);
780
781
- let pvs = a
+ let dvs = a
782
.default_vals
783
.iter()
784
- .map(|pvs| pvs.to_string_lossy())
785
- .map(|pvs| {
786
- if pvs.contains(char::is_whitespace) {
787
- Cow::from(format!("{pvs:?}"))
+ .map(|dv| dv.to_string_lossy())
+ .map(|dv| {
+ if dv.contains(char::is_whitespace) {
+ Cow::from(format!("{dv:?}"))
788
} else {
789
- pvs
+ dv
790
}
791
})
792
.collect::<Vec<_>>()
793
.join(" ");
794
795
spec_vals.push(format!(
796
- "{ctx}[default: {ctx:#}{ctx_val}{pvs}{ctx_val:#}{ctx}]{ctx:#}"
+ "{ctx}[default: {ctx:#}{ctx_val}{dvs}{ctx_val:#}{ctx}]{ctx:#}"
797
));
798
799
0 commit comments