diff options
author | Nishanth Menon <x0nishan@ti.com> | 2008-08-15 19:33:31 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2008-08-19 09:38:57 +0200 |
commit | 624db2b33679611810ef9cf61d163fcc82064d2a (patch) | |
tree | 64973cedcc42f6d18786b857d601c18c31789dab /commands/loadb.c | |
parent | c63e66ed7e582c81f6a371d4058ebca87f129fee (diff) | |
download | barebox-624db2b33679611810ef9cf61d163fcc82064d2a.tar.gz barebox-624db2b33679611810ef9cf61d163fcc82064d2a.tar.xz |
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 <x0nishan@ti.com>
Diffstat (limited to 'commands/loadb.c')
-rw-r--r-- | commands/loadb.c | 6 |
1 files changed, 3 insertions, 3 deletions
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" |