[PATCH] commands: loady: fix Y-Modem/G option name in help message
Antony Pavlov
antonynpavlov at gmail.com
Tue Apr 15 02:59:18 PDT 2014
Actually loady command uses '-g' option for Y-Modem/G mode
selection; see loady() function:
while ((opt = getopt(argc, argv, "b:t:g")) > 0) {
switch (opt) {
...
case 'g':
is_ymodemg = 1;
break;
By mistake help message show '-y' option for Y-Modem/G mode
selection.
This patch fixes the problem.
Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
commands/loadxy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commands/loadxy.c b/commands/loadxy.c
index 7a91286..93a423c 100644
--- a/commands/loadxy.c
+++ b/commands/loadxy.c
@@ -241,7 +241,7 @@ BAREBOX_CMD_END
static const __maybe_unused char cmd_loady_help[] =
"[OPTIONS]\n"
- " -y - use Y-Modem/G (only for lossless tty as USB)\n"
+ " -g - use Y-Modem/G (only for lossless tty as USB)\n"
" -t name - console device name to use - defaults to current console\n"
" -b baud - baudrate at which to download - defaults to console baudrate\n";
--
1.9.0
More information about the barebox
mailing list