chore: use filename of argv0 in UsageInformation

This commit is contained in:
Jan
2024-09-23 23:05:04 +02:00
parent 32480a75eb
commit 5fee875495
10 changed files with 22 additions and 12 deletions

View File

@ -118,9 +118,9 @@ ZoneCodeGeneratorArguments::ZoneCodeGeneratorArguments()
m_verbose = false;
}
void ZoneCodeGeneratorArguments::PrintUsage()
void ZoneCodeGeneratorArguments::PrintUsage() const
{
UsageInformation usage("ZoneCodeGenerator.exe");
UsageInformation usage(m_argument_parser.GetExecutableName());
for (const auto* commandLineOption : COMMAND_LINE_OPTIONS)
{

View File

@ -12,7 +12,7 @@ class ZoneCodeGeneratorArguments
/**
* \brief Prints a command line usage help text for the Unlinker tool to stdout.
*/
static void PrintUsage();
void PrintUsage() const;
static void PrintVersion();
public: