diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2012-11-15 15:22:00 +0100 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2012-11-15 15:22:00 +0100 |
commit | 4ef49e123a6d352e0e72006f979fe403a73356f6 (patch) | |
tree | 1b327e91304015989100e4223721071d5ab66d98 /src/main.c | |
parent | 64505e1b730736c5815382c8fcdf849c91bb79c7 (diff) | |
download | 0xFFFF-4ef49e123a6d352e0e72006f979fe403a73356f6.tar.bz2 |
main: In help show also supported connection protocols
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -117,18 +117,25 @@ static void show_usage(void) { ); - printf( "Devices:\n"); + printf( "Supported devices:\n"); for ( i = 0; i < DEVICE_COUNT; ++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( "\n"); - printf( "Image types:\n"); + printf( "Supported image types:\n"); for ( i = 0; i < IMAGE_COUNT; ++i ) if ( image_type_to_string(i) ) printf(" %s\n", image_type_to_string(i)); 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; |