OSDN Git Service

'-h' is a valid option, recognize it
authorLaszlo Ersek <lersek@redhat.com>
Mon, 9 Sep 2013 09:37:39 +0000 (11:37 +0200)
committerPeter Jones <pjones@redhat.com>
Mon, 13 Jan 2014 21:29:37 +0000 (16:29 -0500)
This completes commit e562a948.

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
src/efibootmgr/efibootmgr.c

index 8143bed..7989303 100644 (file)
@@ -727,7 +727,7 @@ usage()
        printf("\t-V | --version          return version and exit\n");
        printf("\t-w | --write-signature  write unique sig to MBR if needed\n");
        printf("\t-@ | --append-binary-args file  append extra args from file (use \"-\" for stdin)\n");
-       printf("\t   | --help             show help/usage\n");
+       printf("\t-h | --help             show help/usage\n");
 }
 
 static void
@@ -792,7 +792,8 @@ parse_opts(int argc, char **argv)
                };
 
                c = getopt_long (argc, argv,
-                                "AaBb:cd:e:E:gH:i:l:L:n:No:Op:qt:TuU:v::Vw@:",
+                                "AaBb:cd:e:E:gH:i:l:L:n:No:Op:qt:TuU:v::Vw"
+                                "@:h",
                                 long_options, &option_index);
                if (c == -1)
                        break;