so that help2man doesn't fail.
+2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
+ so that help2man doesn't fail.
+
2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
grub_util_init_nls ();
- if (argc != 2)
+ if (argc != 2 || strcmp (argv[1], "--help") == 0)
{
printf("Usage: %s DEVICE\n", program_name);
return 1;
}
+ if (strcmp (argv[1], "--version") == 0)
+ {
+ printf ("%s\n", PACKAGE_STRING);
+ return 1;
+ }
of_path = grub_util_devname_to_ofpath (argv[1]);
printf("%s\n", of_path);