From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YnVJJ-0002aD-Nu for mharc-grub-devel@gnu.org; Wed, 29 Apr 2015 12:58:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnVJH-0002ZF-NU for grub-devel@gnu.org; Wed, 29 Apr 2015 12:58:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnVJC-0007uK-J2 for grub-devel@gnu.org; Wed, 29 Apr 2015 12:58:07 -0400 Received: from mout.gmx.net ([212.227.17.22]:58664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnVJC-0007tj-AM for grub-devel@gnu.org; Wed, 29 Apr 2015 12:58:02 -0400 Received: from scdbackup.webframe.org ([79.192.89.235]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MFz0E-1Z2P1C2QWU-00EwT8 for ; Wed, 29 Apr 2015 18:58:00 +0200 Date: Wed, 29 Apr 2015 18:57:30 +0200 From: "Thomas Schmitt" To: grub-devel@gnu.org Subject: Re: grub-mkrescue problems in argp_parse Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <5540E510.6040002@gmail.com> In-Reply-To: <5540E510.6040002@gmail.com> Message-Id: <25321568600134319256@scdbackup.webframe.org> X-Provags-ID: V03:K0:D4nkhOlISoS5R7t5muWXepBok21g94LFX4eCKvwUk5eRv2ZsKDB zD4FWJw4oXvsao5G6TlZaC2eJr66vn8m6d87L7AQw6bRO/njhAA7oYyAsS5y5L5HGNchuLN bvROi4B9rQhX2OJZMfnmwgX+7VO7M7GIwgBEvWhQcLi1YrUrMTDOLVfVFcugvNT4FlzYeAW wGqnKOXEmnNK9nOPXWqUA== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.22 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2015 16:58:08 -0000 Hi, > We need for compatibility: > -o > --output This is an intentional interference because grub-mkrescue -o is supposed to overload mkisofs -o. --output is not a mkisofs alias of -o, but rather -output. So in order to keep grub-mkrescue users from circumventing the overloading, grub-mkrescue should accept -output as alias of -o and --output. > -? Yikes ! You can have that one. > -d Used in old mkisofs. "Do not add trailing dot to ISO file names without dot." An alias is available: -omit-period > -k Seems to be unused in traditional mkisofs and genisoimage. I do not add single-letter options on my own. > --rom-directory > ... > --verbose Not in use yet by xorriso resp. xorriso -as mkisofs . Some of the option names are quite unspecific, though. > In future we can make a rule to add only options starting with --. This will not really create clarity because i already added options with "--" to -as mkisofs. Mainly to get out of the way of future mkisofs extensions. The current option set of xorriso -as mkisofs is strictly irregular. The generic command interpreter of xorriso ignores leading '-' completely and maps inner '-' to underscores '_'. I.e. set_filter_r , ----set-filter_r, --set-filter-r are all recognized as valid command -set_filter_r. (The interpreter can afford this because it is always aware when the next word is supposed to be a command.) > > --modules --grub-mkimage --override-directory > > Will they be re-introduced ? (Should they ? What did they do ?) > They're there. If you have data suggesting otherwise, please detail it You are right. I did not see them in http://git.savannah.gnu.org/cgit/grub.git/tree/util/grub-mkrescue.c but now found them in http://git.savannah.gnu.org/cgit/grub.git/tree/include/grub/util/install.h http://git.savannah.gnu.org/cgit/grub.git/tree/util/grub-install-common.c (Would it be ok and sufficient to call grub_install_parse () from my proposed legacy parser when it encounters one of the three options ?) --------------------------------------------------------- I have now made a file with the reserved option/command names. Hopefully i remember to check it when i introduce new names. (If not, i will have to solve collisions by introducing aliases and deprecating my bad choices.) Nevertheless i doubt that it is a good idea to stick for future development with the implicit distinction between arguments for grub-mkrescue and for xorriso. This has potential for recurrent pain. Have a nice day :) Thomas