Hi, I've noticed, that GRUB 2 uses argp in grub-emu [1], whereas other utilities use getopt_long [2]. Wouldn't it be nice to make this consistent?
[1] http://www.gnu.org/software/libc/manual/html_node/Argp.html [2] http://www.gnu.org/software/libc/manual/html_node/Getopt-Long-Options.html I find the "GNU way," argp, approach more elegant, as demonstrated by a patch to util/i386/pc/grub-mkimage.c. Seeing a patch with more minuses than pluses is a good sign, indeed. The main argument against agrp framework could be, that non-GNU C libraries do not contain with it. There's a standalone libargp package [3] that is available for package systems of all major operating systems, including NetBSD and FreeBSD, so the only disadvantage is addding a dependency there. [3] http://www.lysator.liu.se/~nisse/misc/ Regards, -- Lubomir Kundrak (Red Hat Security Response Team) _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel