@@ -28,17 +28,17 @@ describe('USB Command-Line Interface', () => {
28
28
'Help: particle help usb <command>' ,
29
29
'' ,
30
30
'Commands:' ,
31
- ' list List the devices connected to the host computer' ,
32
- ' start-listening Put a device into the listening mode' ,
33
- ' listen alias for start-listening' ,
34
- ' stop-listening Make a device exit the listening mode' ,
35
- ' safe-mode Put a device into the safe mode' ,
36
- ' dfu Put a device into the DFU mode' ,
37
- ' reset Reset a device' ,
38
- ' setup-done Set the setup done flag' ,
39
- ' configure Update the system USB configuration' ,
40
- ' cloud-status Check a device\'s cloud connection state' ,
41
- ' network-interfaces Gets the network configuration of the device' ,
31
+ ' list List the devices connected to the host computer' ,
32
+ ' start-listening Put a device into the listening mode' ,
33
+ ' listen alias for start-listening' ,
34
+ ' stop-listening Make a device exit the listening mode' ,
35
+ ' safe-mode Put a device into the safe mode' ,
36
+ ' dfu Put a device into the DFU mode' ,
37
+ ' reset Reset a device' ,
38
+ ' setup-done Set the setup done flag' ,
39
+ ' configure Update the system USB configuration' ,
40
+ ' cloud-status Check a device\'s cloud connection state' ,
41
+ ' network-interfaces Gets the network configuration of the device' ,
42
42
''
43
43
] . join ( '\n' ) ) ;
44
44
} ) ;
@@ -385,16 +385,21 @@ describe('USB Command-Line Interface', () => {
385
385
expect ( argv . clierror ) . to . equal ( undefined ) ;
386
386
expect ( argv . all ) . to . equal ( false ) ;
387
387
} ) ;
388
-
388
+
389
389
it ( 'Includes help with examples' , ( ) => {
390
390
commandProcessor . parse ( root , [ 'usb' , 'network-interfaces' , '--help' ] , termWidth ) ;
391
391
commandProcessor . showHelp ( ( helpText ) => {
392
392
expect ( helpText ) . to . equal ( [
393
393
'Gets the network configuration of the device' ,
394
- 'Usage: particle usb network-interfaces' ,
394
+ 'Usage: particle usb network-interfaces [options] [devices...]' ,
395
+ '' ,
396
+ 'Options:' ,
397
+ ' --all Send the command to all devices connected to the host computer [boolean]' ,
395
398
'' ,
396
399
'Examples:' ,
397
- ' particle usb network-interfaces Gets the network configuration of the device' ,
400
+ ' particle usb network-interfaces Gets the network configuration of the device' ,
401
+ ' particle usb network-interfaces --all Gets the network configuration of all the devices connected over USB' ,
402
+ ' particle usb network-interfaces my_device Gets the network configuration of the device named "my_device"' ,
398
403
''
399
404
] . join ( '\n' ) ) ;
400
405
} ) ;
0 commit comments