From 4ef49e123a6d352e0e72006f979fe403a73356f6 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Thu, 15 Nov 2012 15:22:00 +0100 Subject: main: In help show also supported connection protocols --- src/main.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 3e75bf9..a0c4803 100644 --- a/src/main.c +++ b/src/main.c @@ -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; -- cgit v1.2.3