Skip to content

Commit 9fed5a7

Browse files
committed
fix: Rename pvs to dvs for default values
1 parent c1cebf3 commit 9fed5a7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

clap_builder/src/output/help_template.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -778,22 +778,22 @@ impl HelpTemplate<'_, '_> {
778778
a.default_vals
779779
);
780780

781-
let pvs = a
781+
let dvs = a
782782
.default_vals
783783
.iter()
784-
.map(|pvs| pvs.to_string_lossy())
785-
.map(|pvs| {
786-
if pvs.contains(char::is_whitespace) {
787-
Cow::from(format!("{pvs:?}"))
784+
.map(|dv| dv.to_string_lossy())
785+
.map(|dv| {
786+
if dv.contains(char::is_whitespace) {
787+
Cow::from(format!("{dv:?}"))
788788
} else {
789-
pvs
789+
dv
790790
}
791791
})
792792
.collect::<Vec<_>>()
793793
.join(" ");
794794

795795
spec_vals.push(format!(
796-
"{ctx}[default: {ctx:#}{ctx_val}{pvs}{ctx_val:#}{ctx}]{ctx:#}"
796+
"{ctx}[default: {ctx:#}{ctx_val}{dvs}{ctx_val:#}{ctx}]{ctx:#}"
797797
));
798798
}
799799

0 commit comments

Comments
 (0)