@@ -106,11 +106,11 @@ enum
106
106
#if CHIP_WITH_NLFAULTINJECTION
107
107
kDeviceOption_FaultInjection = 0x1027 ,
108
108
#endif
109
- kDeviceOption_VendorName = 0x1028 ,
110
- kDeviceOption_ProductName = 0x1029 ,
109
+ kDeviceOption_VendorName = 0x1028 ,
110
+ kDeviceOption_ProductName = 0x1029 ,
111
111
kDeviceOption_HardwareVersionString = 0x102a ,
112
112
kDeviceOption_SoftwareVersionString = 0x102b ,
113
- kDeviceOption_SerialNumber = 0x102c ,
113
+ kDeviceOption_SerialNumber = 0x102c ,
114
114
115
115
};
116
116
@@ -132,7 +132,7 @@ OptionDef sDeviceOptionDefs[] = {
132
132
{ " product-id" , kArgumentRequired , kDeviceOption_ProductID },
133
133
{ " vendor-name" , kArgumentRequired , kDeviceOption_VendorName },
134
134
{ " product-name" , kArgumentRequired , kDeviceOption_ProductName },
135
- { " harware -version-string" , kArgumentRequired , kDeviceOption_HardwareVersionString },
135
+ { " hardware -version-string" , kArgumentRequired , kDeviceOption_HardwareVersionString },
136
136
{ " software-version-string" , kArgumentRequired , kDeviceOption_SoftwareVersionString },
137
137
{ " serial-number" , kArgumentRequired , kDeviceOption_SerialNumber },
138
138
{ " custom-flow" , kArgumentRequired , kDeviceOption_CustomFlow },
@@ -215,6 +215,21 @@ const char * sDeviceOptionHelp =
215
215
" --product-id <id>\n "
216
216
" The Product ID is specified by vendor.\n "
217
217
" \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 "
218
233
" --custom-flow <Standard = 0 | UserActionRequired = 1 | Custom = 2>\n "
219
234
" A 2-bit unsigned enumeration specifying manufacturer-specific custom flow options.\n "
220
235
" \n "
@@ -599,7 +614,6 @@ bool HandleOption(const char * aProgram, OptionSet * aOptions, int aIdentifier,
599
614
retval = false ;
600
615
}
601
616
break ;
602
-
603
617
}
604
618
#endif
605
619
case kDeviceOption_VendorName :
@@ -613,15 +627,15 @@ bool HandleOption(const char * aProgram, OptionSet * aOptions, int aIdentifier,
613
627
case kDeviceOption_HardwareVersionString :
614
628
LinuxDeviceOptions::GetInstance ().hardwareVersionString .SetValue (std::string{ aValue });
615
629
break ;
616
-
630
+
617
631
case kDeviceOption_SoftwareVersionString :
618
632
LinuxDeviceOptions::GetInstance ().softwareVersionString .SetValue (std::string{ aValue });
619
633
break ;
620
-
634
+
621
635
case kDeviceOption_SerialNumber :
622
636
LinuxDeviceOptions::GetInstance ().serialNumber .SetValue (std::string{ aValue });
623
637
break ;
624
-
638
+
625
639
default :
626
640
PrintArgError (" %s: INTERNAL ERROR: Unhandled option: %s\n " , aProgram, aName);
627
641
retval = false ;
0 commit comments