From 624db2b33679611810ef9cf61d163fcc82064d2a Mon Sep 17 00:00:00 2001 From: Nishanth Menon Date: Fri, 15 Aug 2008 19:33:31 -0500 Subject: loadb: change -d to -f -d represents devices only.. but loadb can operate on files as well. hence Use -f as option to select the output file. This is more representative of what we are trying to do. Signed-off-by: Nishanth Menon --- commands/loadb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'commands') diff --git a/commands/loadb.c b/commands/loadb.c index 9c7819ef89..cccc282cb1 100644 --- a/commands/loadb.c +++ b/commands/loadb.c @@ -657,9 +657,9 @@ static int do_load_serial_bin(cmd_tbl_t *cmdtp, int argc, char *argv[]) getopt_reset(); - while ((opt = getopt(argc, argv, "d:b:o:c")) > 0) { + while ((opt = getopt(argc, argv, "f:b:o:c")) > 0) { switch (opt) { - case 'd': + case 'f': output_file = optarg; break; case 'b': @@ -758,7 +758,7 @@ static int do_load_serial_bin(cmd_tbl_t *cmdtp, int argc, char *argv[]) static const __maybe_unused char cmd_loadb_help[] = "[OPTIONS]\n" - " -d device - which device to download - defaults to " DEF_FILE "\n" + " -f file - where to download to - defaults to " DEF_FILE "\n" " -o offset - what offset to download - defaults to 0\n" " -b baud - baudrate at which to download - defaults to " "console baudrate" -- cgit v1.2.3