Fix ContentListing::option source location

Use a null location instead of referencing `log_help.cc`.
This commit is contained in:
Krystine Sherwin 2026-07-09 15:54:17 +12:00
parent b35b6706f8
commit 0e763f320b
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ void ContentListing::usage(const string &text,
void ContentListing::option(const string &text, const string &description, void ContentListing::option(const string &text, const string &description,
const source_location location) const source_location location)
{ {
auto option = open_option(text); auto option = open_option(text, source_location());
if (description.length()) if (description.length())
option->add_content("text", description, location); option->add_content("text", description, location);
} }