Skip to content

Commit

Permalink
Fix crash running vcpkg help commands reported by @JavierMatosD (#1199
Browse files Browse the repository at this point in the history
)
  • Loading branch information
BillyONeal authored Sep 15, 2023
1 parent 962dd60 commit ac02a9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vcpkg/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ namespace vcpkg

static void format_command_usage_entry(HelpTableFormatter& table, const CommandMetadata& metadata)
{
table.format(metadata.name, metadata.synopsis.to_string());
if (metadata.synopsis)
{
table.format(metadata.name, metadata.synopsis.to_string());
}
}

void print_zero_args_usage()
Expand Down

0 comments on commit ac02a9f

Please sign in to comment.