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.
if
1 parent 509924a commit d0d11f3Copy full SHA for d0d11f3
1 file changed
src/man_page.rs
@@ -202,13 +202,13 @@ fn render_value_hint(arg: &Arg) -> String {
202
.map(|value| value.to_string_lossy())
203
.map(Cow::into_owned)
204
.collect();
205
- if !defaults.is_empty()
206
- && !arg.is_hide_default_value_set()
207
- && !matches!(arg.get_action(), ArgAction::SetTrue)
+ if defaults.is_empty()
+ || arg.is_hide_default_value_set()
+ || matches!(arg.get_action(), ArgAction::SetTrue)
208
{
209
- format!("{value_part} [default: {}]", defaults.join(", "))
210
- } else {
211
value_part
+ } else {
+ format!("{value_part} [default: {}]", defaults.join(", "))
212
}
213
214
0 commit comments