]> www.infradead.org Git - mtd-utils.git/commitdiff
[PATCH] UBI Utils: Fix syntax description for ubiupdatevol
authorTimo Lindhorst <lindhors@linux.vnet.ibm.com>
Fri, 26 Jan 2007 10:50:04 +0000 (11:50 +0100)
committerFrank Haverkamp <haver@vnet.ibm.com>
Fri, 26 Jan 2007 15:31:16 +0000 (16:31 +0100)
Fix the syntax description in the help and usage messages for ubiupdatevol.

Signed-off-by: Timo Lindhorst <lindhors@linux.vnet.ibm.com>
ubi-utils/src/ubiupdatevol.c

index b3c4bf1136304e03beb94dcf92e7f5ef34707109..c0b41788affbbf5ff80e74690c45b40edb393869 100644 (file)
@@ -89,7 +89,7 @@ static const char *optionsstr =
 static const char *usage =
 "Usage: ubiupdatevol [-Bt?V] [-d <devn>] [-n <volume id>] [--broken-update]\n"
 "            [--devn=<devn>] [--vol_id=<volume id>] [--truncate] [--help]\n"
-"            [--usage] [--version]\n";
+"            [--usage] [--version] <image file>\n";
 
 struct option long_options[] = {
        { .name = "broken-update", .has_arg = 0, .flag = NULL, .val = 'B' },
@@ -144,7 +144,7 @@ parse_opt(int argc, char **argv, struct args *args)
 
                        case '?': /* help */
                                fprintf(stderr, "Usage: "
-                                       "ubiupdatevol [OPTION...]\n%s%s"
+                                       "ubiupdatevol [OPTION...] <image file>\n%s%s"
                                        "\nReport bugs to %s\n",
                                        doc, optionsstr, PACKAGE_BUGREPORT);
                                exit(EXIT_SUCCESS);
@@ -239,7 +239,7 @@ ubi_update_volume(struct args *args)
        }
 
        if (fname == NULL) {
-               fprintf(stderr, "Please specify an existing file.\n");
+               fprintf(stderr, "Please specify an existing image file.\n");
                exit(EXIT_FAILURE);
        }