1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| | --- b/teensy_loader_cli.c.orig 2016-04-07 02:05:41.000000000 +0200
+++ a/teensy_loader_cli.c 2016-05-29 14:32:44.861930222 +0200
@@ -37,14 +37,15 @@
{
if(err != NULL) fprintf(stderr, "%s\n\n", err);
fprintf(stderr,
- "Usage: teensy_loader_cli --mcu=<MCU> [-w] [-h] [-n] [-b] [-v] <file.hex>\n"
+ "Usage: teensy-loader-cli --mcu=<MCU> [-h] [-w] [-n] [-b] [-v] <file.hex>\n"
+ "\t-h : Print this help message\n"
"\t-w : Wait for device to appear\n"
"\t-r : Use hard reboot if device not online\n"
"\t-s : Use soft reboot if device not online (Teensy3.x only)\n"
"\t-n : No reboot after programming\n"
"\t-b : Boot only, do not program\n"
"\t-v : Verbose output\n"
- "\nUse `teensy_loader_cli --list-mcus` to list supported MCUs.\n"
+ "\nUse `teensy-loader-cli --list-mcus` to list supported MCUs.\n"
"\nFor more information, please visit:\n"
"http://www.pjrc.com/teensy/loader_cli.html\n");
exit(1);
@@ -1081,6 +1082,7 @@
int i;
for(i=1; arg[i]; i++) {
switch(arg[i]) {
+ case 'h': usage(NULL); break;
case 'w': wait_for_device_to_appear = 1; break;
case 'r': hard_reboot_device = 1; break;
case 's': soft_reboot_device = 1; break;
|