Skip to content

Commit

Permalink
fix man page generator
Browse files Browse the repository at this point in the history
Will make the CI on this work again in a separate PR
  • Loading branch information
WebFreak001 authored and Geod24 committed Feb 4, 2023
1 parent bbd2f08 commit 6e2f305
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/man/gen_man.d
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dependency "dub" path="../.."

import std.algorithm, std.conv, std.format, std.path, std.range;
import std.stdio : File;
import dub.internal.dyaml.stdsumtype;
import dub.commandline;

static struct Config
Expand Down Expand Up @@ -266,7 +267,7 @@ struct ManWriter
}
if (larg !is null) {
name ~= bold(escapeWord("--%s".format(larg)));
if (!arg.defaultValue.peek!bool)
if (arg.defaultValue.match!((bool b) => false, _ => true))
name ~= escapeWord("=") ~ italic("VALUE");
}
writeArgName(cmdName, name);
Expand Down

0 comments on commit 6e2f305

Please sign in to comment.