Skip to content

Commit 4d3283d

Browse files
show help (project-chip#72115)
1 parent b38d364 commit 4d3283d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/all-devices-app/posix/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,8 @@ CHIP_ERROR Initialize(int argc, char * argv[])
376376
ChipLogProgress(AppServer, "Initializing...");
377377
ReturnErrorOnFailure(Platform::MemoryInit());
378378

379-
static OptionSet * sAppOptionSets[] = { AppOptions::GetOptions(), nullptr };
379+
static HelpOptions sHelpOptions(argv[0], "Usage: all-devices-app [options]", "1.0");
380+
static OptionSet * sAppOptionSets[] = { AppOptions::GetOptions(), &sHelpOptions, nullptr };
380381
if (!ArgParser::ParseArgs(argv[0], argc, argv, sAppOptionSets))
381382
{
382383
return CHIP_ERROR_INVALID_ARGUMENT;

0 commit comments

Comments
 (0)