summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-11-15 15:22:00 +0100
committerPali Rohár <pali.rohar@gmail.com>2012-11-15 15:22:00 +0100
commit4ef49e123a6d352e0e72006f979fe403a73356f6 (patch)
tree1b327e91304015989100e4223721071d5ab66d98 /src/main.c
parent64505e1b730736c5815382c8fcdf849c91bb79c7 (diff)
download0xFFFF-4ef49e123a6d352e0e72006f979fe403a73356f6.tar.bz2
main: In help show also supported connection protocols
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c11
1 files changed, 9 insertions, 2 deletions
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;