Skip to content

Commit 12424a5

Browse files
author
chaitanya jandhyala
committed
fixed few typos
1 parent f59b118 commit 12424a5

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

examples/platform/linux/Options.cpp

+22-8
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ enum
106106
#if CHIP_WITH_NLFAULTINJECTION
107107
kDeviceOption_FaultInjection = 0x1027,
108108
#endif
109-
kDeviceOption_VendorName = 0x1028,
110-
kDeviceOption_ProductName = 0x1029,
109+
kDeviceOption_VendorName = 0x1028,
110+
kDeviceOption_ProductName = 0x1029,
111111
kDeviceOption_HardwareVersionString = 0x102a,
112112
kDeviceOption_SoftwareVersionString = 0x102b,
113-
kDeviceOption_SerialNumber = 0x102c,
113+
kDeviceOption_SerialNumber = 0x102c,
114114

115115
};
116116

@@ -132,7 +132,7 @@ OptionDef sDeviceOptionDefs[] = {
132132
{ "product-id", kArgumentRequired, kDeviceOption_ProductID },
133133
{ "vendor-name", kArgumentRequired, kDeviceOption_VendorName },
134134
{ "product-name", kArgumentRequired, kDeviceOption_ProductName },
135-
{ "harware-version-string", kArgumentRequired, kDeviceOption_HardwareVersionString },
135+
{ "hardware-version-string", kArgumentRequired, kDeviceOption_HardwareVersionString },
136136
{ "software-version-string", kArgumentRequired, kDeviceOption_SoftwareVersionString },
137137
{ "serial-number", kArgumentRequired, kDeviceOption_SerialNumber },
138138
{ "custom-flow", kArgumentRequired, kDeviceOption_CustomFlow },
@@ -215,6 +215,21 @@ const char * sDeviceOptionHelp =
215215
" --product-id <id>\n"
216216
" The Product ID is specified by vendor.\n"
217217
"\n"
218+
" --vendor-name <id>\n"
219+
" The Product ID is specified by vendor.\n"
220+
"\n"
221+
" --product-name <id>\n"
222+
" The Product ID is specified by vendor.\n"
223+
"\n"
224+
" --hardware-version-string <id>\n"
225+
" The Product ID is specified by vendor.\n"
226+
"\n"
227+
" --software-version-string <id>\n"
228+
" The Product ID is specified by vendor.\n"
229+
"\n"
230+
" --serial-number <id>\n"
231+
" The Product ID is specified by vendor.\n"
232+
"\n"
218233
" --custom-flow <Standard = 0 | UserActionRequired = 1 | Custom = 2>\n"
219234
" A 2-bit unsigned enumeration specifying manufacturer-specific custom flow options.\n"
220235
"\n"
@@ -599,7 +614,6 @@ bool HandleOption(const char * aProgram, OptionSet * aOptions, int aIdentifier,
599614
retval = false;
600615
}
601616
break;
602-
603617
}
604618
#endif
605619
case kDeviceOption_VendorName:
@@ -613,15 +627,15 @@ bool HandleOption(const char * aProgram, OptionSet * aOptions, int aIdentifier,
613627
case kDeviceOption_HardwareVersionString:
614628
LinuxDeviceOptions::GetInstance().hardwareVersionString.SetValue(std::string{ aValue });
615629
break;
616-
630+
617631
case kDeviceOption_SoftwareVersionString:
618632
LinuxDeviceOptions::GetInstance().softwareVersionString.SetValue(std::string{ aValue });
619633
break;
620-
634+
621635
case kDeviceOption_SerialNumber:
622636
LinuxDeviceOptions::GetInstance().serialNumber.SetValue(std::string{ aValue });
623637
break;
624-
638+
625639
default:
626640
PrintArgError("%s: INTERNAL ERROR: Unhandled option: %s\n", aProgram, aName);
627641
retval = false;

0 commit comments

Comments
 (0)