Skip to content

Commit

Permalink
Fix crash running vcpkg help commands reported by @JavierMatosD
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyONeal committed Sep 15, 2023
1 parent 76de2f3 commit 663f76e
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 663f76e

Please sign in to comment.