main: In help show also supported connection protocols

This commit is contained in:
Pali Rohár committed 2012-11-15 15:22:00 +01:00
1 parent 64505e1b73
commit 4ef49e123a
1 file changed
+9 -2
+9 -2
View File
@@ -117,18 +117,25 @@ static void show_usage(void) {
); );
printf( "Devices:\n"); printf( "Supported devices:\n");
for ( i = 0; i < DEVICE_COUNT; ++i ) for ( i = 0; i < DEVICE_COUNT; ++i )
if ( device_to_string(i) && device_to_long_string(i) ) if ( device_to_string(i) && device_to_long_string(i) )
printf(" %-14s %s\n", device_to_string(i), device_to_long_string(i)); printf(" %-14s %s\n", device_to_string(i), device_to_long_string(i));
printf( "\n"); printf( "\n");
printf( "Image types:\n"); printf( "Supported image types:\n");
for ( i = 0; i < IMAGE_COUNT; ++i ) for ( i = 0; i < IMAGE_COUNT; ++i )
if ( image_type_to_string(i) ) if ( image_type_to_string(i) )
printf(" %s\n", image_type_to_string(i)); printf(" %s\n", image_type_to_string(i));
printf( "\n"); printf( "\n");
printf( "Supported connection protocols:\n");
printf( " Local on device\n");
for ( i = 0; i < FLASH_COUNT; ++i )
if ( usb_flash_protocol_to_string(i) )
printf(" %s via USB\n", usb_flash_protocol_to_string(i));
printf( "\n");
} }
int simulate; int simulate;