1 parent b38d364 commit 4d3283dCopy full SHA for 4d3283d
1 file changed
examples/all-devices-app/posix/main.cpp
@@ -376,7 +376,8 @@ CHIP_ERROR Initialize(int argc, char * argv[])
376
ChipLogProgress(AppServer, "Initializing...");
377
ReturnErrorOnFailure(Platform::MemoryInit());
378
379
- static OptionSet * sAppOptionSets[] = { AppOptions::GetOptions(), nullptr };
+ static HelpOptions sHelpOptions(argv[0], "Usage: all-devices-app [options]", "1.0");
380
+ static OptionSet * sAppOptionSets[] = { AppOptions::GetOptions(), &sHelpOptions, nullptr };
381
if (!ArgParser::ParseArgs(argv[0], argc, argv, sAppOptionSets))
382
{
383
return CHIP_ERROR_INVALID_ARGUMENT;
0 commit comments